Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
646cc8ef
by Werner Lemberg at 2023-02-02T10:51:39+01:00
1 changed file:
Changes:
... | ... | @@ -488,13 +488,14 @@ |
488 | 488 | decoder.builder.no_recurse =
|
489 | 489 | FT_BOOL( load_flags & FT_LOAD_NO_RECURSE );
|
490 | 490 | |
491 | - /* now load the unscaled outline */
|
|
492 | - error = cff_get_glyph_data( face, glyph_index,
|
|
493 | - &charstring, &charstring_len );
|
|
491 | + /* this function also checks for a valid subfont index */
|
|
492 | + error = decoder_funcs->prepare( &decoder, size, glyph_index );
|
|
494 | 493 | if ( error )
|
495 | 494 | goto Glyph_Build_Finished;
|
496 | 495 | |
497 | - error = decoder_funcs->prepare( &decoder, size, glyph_index );
|
|
496 | + /* now load the unscaled outline */
|
|
497 | + error = cff_get_glyph_data( face, glyph_index,
|
|
498 | + &charstring, &charstring_len );
|
|
498 | 499 | if ( error )
|
499 | 500 | goto Glyph_Build_Finished;
|
500 | 501 |