Skip to content

Commit

Permalink
coredump fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 23, 2024
1 parent f1a4c4e commit 1879938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unix/freetype.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,14 @@ prima_ft_is_font_colored( FT_Face face)
{
#if defined(TTAG_COLR) && defined(TTAG_CPAL)
FT_Int a,b,c;
FT_ULong l = 0;
FT_ULong l1 = 0, l2 = 0;

FT_Library_Version(ft_library,&a,&b,&c);
if ( a < 2 || ( a == 2 && b < 10 )) /* CPAL/COLR only supported in 2.10 */
return false;
return
FT_Load_Sfnt_Table(face, TTAG_COLR, 0, NULL, &l) &&
FT_Load_Sfnt_Table(face, TTAG_CPAL, 0, NULL, &l)
FT_Load_Sfnt_Table(face, TTAG_COLR, 0, NULL, &l1) &&
FT_Load_Sfnt_Table(face, TTAG_CPAL, 0, NULL, &l2)
;
#else
return false;
Expand Down

0 comments on commit 1879938

Please sign in to comment.