From 9e7748f55c971ae97399da544596f70feaee74d9 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 17 Nov 2016 08:04:52 +0100 Subject: [PATCH] Improve documentation of `lsb_delta' and `rsb_delta' (#19044). --- include/freetype/freetype.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index f3287b7e9..d979605a7 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -1731,7 +1731,6 @@ FT_BEGIN_HEADER /* position (e.g., coordinates (0,0) on the baseline). Of course, */ /* `slot->format' is also changed to @FT_GLYPH_FORMAT_BITMAP. */ /* */ - /* */ /* Here is a small pseudo code fragment that shows how to use */ /* `lsb_delta' and `rsb_delta': */ /* */ @@ -1759,6 +1758,12 @@ FT_BEGIN_HEADER /* endfor */ /* } */ /* */ + /* If you use strong auto-hinting, you *must* apply these delta */ + /* values! Otherwise you will experience far too large inter-glyph */ + /* spacing at small rendering sizes in most cases. Note that it */ + /* doesn't harm to use the above code for other hinting modes also, */ + /* since the delta values are zero then. */ + /* */ typedef struct FT_GlyphSlotRec_ { FT_Library library;