mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00:00
[truetype] Add comment to explain heuristic limit for twilight points.
This commit is contained in:
@@ -7424,6 +7424,9 @@
|
||||
|
||||
/* We restrict the number of twilight points to a reasonable, */
|
||||
/* heuristic value to avoid slow execution of malformed bytecode. */
|
||||
/* The selected value is large enough to support fonts hinted */
|
||||
/* with `ttfautohint`, which uses twilight points to store */
|
||||
/* vertical coordinates of (auto-hinter) segments. */
|
||||
num_twilight_points = FT_MAX( 30,
|
||||
2 * ( exec->pts.n_points + exec->cvtSize ) );
|
||||
if ( exec->twilight.n_points > num_twilight_points )
|
||||
|
||||
Reference in New Issue
Block a user