[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] af_face_globals_is_digit bug?
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] af_face_globals_is_digit bug? |
Date: |
Tue, 25 Sep 2018 09:13:38 +0200 (CEST) |
> We noticed a few very small differences in the font metrics we were
> getting for digits. [...]
>
> If we change our local copy of your code to the following and we are
> able to produce consistent results between releases 2.6.0 and 2.6.1:
>
> FT_LOCAL_DEF( FT_Bool )
> af_face_globals_is_digit( AF_FaceGlobals globals,
> FT_UInt gindex )
> {
> if ( gindex < (FT_ULong)globals->glyph_count )
> return (FT_Bool)(( globals->glyph_styles[gindex] & AF_DIGIT ) ==
> AF_DIGIT);
>
> return (FT_Bool)0;
> }
Thanks a lot for the report. I've fixed this now. Please test!
Werner