ref: 9e7748f55c971ae97399da544596f70feaee74d9
parent: 48c77da38243249b649b39b46935442d653c5d8c
author: Werner Lemberg <[email protected]>
date: Thu Nov 17 03:04:52 EST 2016
Improve documentation of `lsb_delta' and `rsb_delta' (#19044).
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -1731,7 +1731,6 @@
/* position (e.g., coordinates (0,0) on the baseline). Of course, */
/* `slot->format' is also changed to @FT_GLYPH_FORMAT_BITMAP. */
/* */
- /* <Note> */
/* Here is a small pseudo code fragment that shows how to use */
/* `lsb_delta' and `rsb_delta': */
/* */
@@ -1758,6 +1757,12 @@
/* origin_x += face->glyph->advance.x; */
/* 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_
{