mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-08 10:28:01 +02:00
[truetype] Add comment to explain heuristic limit for twilight points.
This commit is contained in:
parent
43940e4cb8
commit
58be4879c5
1 changed files with 3 additions and 0 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue