Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
3f3e3de3
by Honnesh Ramachandra at 2024-11-06T06:28:41+01:00
1 changed file:
Changes:
... | ... | @@ -550,13 +550,13 @@ |
550 | 550 | if ( error )
|
551 | 551 | goto Exit;
|
552 | 552 | }
|
553 | - else
|
|
554 | - {
|
|
555 | - /* load the `cmap' table explicitly */
|
|
556 | - error = sfnt->load_cmap( face, stream );
|
|
557 | - if ( error )
|
|
558 | - goto Exit;
|
|
559 | - }
|
|
553 | + |
|
554 | + /* load the `cmap' table explicitly */
|
|
555 | + error = sfnt->load_cmap( face, stream );
|
|
556 | + |
|
557 | + /* this may fail because CID-keyed fonts don't have a cmap */
|
|
558 | + if ( FT_ERR_NEQ( error, Table_Missing ) && FT_ERR_NEQ( error, Ok ) )
|
|
559 | + goto Exit;
|
|
560 | 560 | |
561 | 561 | /* now load the CFF part of the file; */
|
562 | 562 | /* give priority to CFF2 */
|