Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
f02bffad
by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-10-14T11:47:31+00:00
1 changed file:
Changes:
... | ... | @@ -1566,13 +1566,14 @@ |
1566 | 1566 | if ( header_only )
|
1567 | 1567 | goto Exit;
|
1568 | 1568 | |
1569 | - if ( loader->byte_len == 0 || loader->n_contours == 0 )
|
|
1570 | - {
|
|
1571 | 1569 | #ifdef FT_CONFIG_OPTION_INCREMENTAL
|
1572 | - tt_get_metrics_incremental( loader, glyph_index );
|
|
1570 | + tt_get_metrics_incremental( loader, glyph_index );
|
|
1573 | 1571 | #endif
|
1574 | - tt_loader_set_pp( loader );
|
|
1572 | + tt_loader_set_pp( loader );
|
|
1575 | 1573 | |
1574 | + /* shortcut for empty glyphs */
|
|
1575 | + if ( loader->byte_len == 0 || loader->n_contours == 0 )
|
|
1576 | + {
|
|
1576 | 1577 | |
1577 | 1578 | #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
|
1578 | 1579 | |
... | ... | @@ -1627,11 +1628,6 @@ |
1627 | 1628 | goto Exit;
|
1628 | 1629 | }
|
1629 | 1630 | |
1630 | -#ifdef FT_CONFIG_OPTION_INCREMENTAL
|
|
1631 | - tt_get_metrics_incremental( loader, glyph_index );
|
|
1632 | -#endif
|
|
1633 | - tt_loader_set_pp( loader );
|
|
1634 | - |
|
1635 | 1631 | |
1636 | 1632 | /***********************************************************************/
|
1637 | 1633 | /***********************************************************************/
|