* src/cff/cffdrivr.c (cff_ps_get_font_info): Reject 'CFF2' format.

This commit is contained in:
Werner Lemberg 2023-04-28 10:40:41 +02:00
parent 4908c1e84d
commit 17a0c5dfd5
1 changed files with 6 additions and 0 deletions

View File

@ -471,6 +471,12 @@
FT_Error error = FT_Err_Ok;
if ( face->is_cff2 )
{
error = FT_THROW( Invalid_Argument );
goto Fail;
}
if ( cff && !cff->font_info )
{
CFF_FontRecDict dict = &cff->top_font.font_dict;