Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
4a85ff0b
by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-01-04T21:38:51-05:00
1 changed file:
Changes:
| ... | ... | @@ -436,13 +436,8 @@ |
| 436 | 436 | |
| 437 | 437 | format = face->postscript.FormatType;
|
| 438 | 438 | |
| 439 | - if ( format == 0x00010000L )
|
|
| 440 | - {
|
|
| 441 | - if ( idx < 258 ) /* paranoid checking */
|
|
| 442 | - *PSname = MAC_NAME( idx );
|
|
| 443 | - }
|
|
| 444 | - else if ( format == 0x00020000L ||
|
|
| 445 | - format == 0x00025000L )
|
|
| 439 | + if ( format == 0x00020000L ||
|
|
| 440 | + format == 0x00025000L )
|
|
| 446 | 441 | {
|
| 447 | 442 | TT_Post_Names names = &face->postscript_names;
|
| 448 | 443 | |
| ... | ... | @@ -466,6 +461,11 @@ |
| 466 | 461 | }
|
| 467 | 462 | }
|
| 468 | 463 | |
| 464 | + /* version 1.0 is only valid with 258 glyphs */
|
|
| 465 | + else if ( format == 0x00010000L &&
|
|
| 466 | + face->max_profile.numGlyphs == 258 )
|
|
| 467 | + *PSname = MAC_NAME( idx );
|
|
| 468 | + |
|
| 469 | 469 | /* nothing to do for format == 0x00030000L */
|
| 470 | 470 | |
| 471 | 471 | End:
|