Craig White pushed to branch gsoc-craig-2023 at FreeType / FreeType
Commits:
-
aeba770c
by Craig White at 2023-10-27T01:51:31-04:00
2 changed files:
Changes:
| ... | ... | @@ -13,10 +13,12 @@ |
| 13 | 13 | #include <hb-ot.h>
|
| 14 | 14 | #endif
|
| 15 | 15 | |
| 16 | -/*TODO: find out whether capital u/U with accent entries are needed*/
|
|
| 17 | -/*the accent won't merge with the rest of the glyph because the accent mark is sitting above empty space*/
|
|
| 18 | 16 | /*
|
| 19 | 17 | All entries in this list must be sorted by unicode codepoint ascending
|
| 18 | + The table entries are 3 numbers consisting of:
|
|
| 19 | + - unicode codepoint. THESE MUST BE LISTED IN ASCENDING ORDER
|
|
| 20 | + - the vertical adjustment type. One of the entries in AF_VerticalSeparationAdjustmentType
|
|
| 21 | + - 0 if the topmost contour is a tilde and should be prevented from flattening.
|
|
| 20 | 22 | */
|
| 21 | 23 | FT_LOCAL_ARRAY_DEF( AF_AdjustmentDatabaseEntry )
|
| 22 | 24 | adjustment_database[] =
|
| ... | ... | @@ -2880,6 +2880,14 @@ af_latin_remove_tilde_points_from_edges( AF_GlyphHints hints, |
| 2880 | 2880 | }
|
| 2881 | 2881 | } while ( p != first_point );
|
| 2882 | 2882 | }
|
| 2883 | +/*
|
|
| 2884 | +The tilde unflatenning algorithm sometimes goes too far and makes an
|
|
| 2885 | +unusually high tilde, where decreasing the ppem will increase the height
|
|
| 2886 | +instead of a steady decrease in height as less pixels are used.
|
|
| 2887 | + |
|
| 2888 | +The n tilde on times new roman with forced autofitting on,
|
|
| 2889 | +16.5-18 ppem font size exhibits this behaviour.
|
|
| 2890 | +*/
|
|
| 2883 | 2891 | void
|
| 2884 | 2892 | af_latin_stretch_tildes( AF_GlyphHints hints,
|
| 2885 | 2893 | FT_Int glyph_index )
|