freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] [PATCH] Always check the checksum to identify tricky font


From: Алексей Подтележников
Subject: Re: [ft-devel] [PATCH] Always check the checksum to identify tricky fonts
Date: Mon, 25 Apr 2011 15:09:21 -0400

2011/4/25 suzuki toshiya <address@hidden>:
> Thank you for advice, but the algorithm would be "OR", so, considering
> the proposal of Kan-Ru Chen, the unified conditional would be:
>
> if ( (face->family_name && tt_check_trickyness_family( face->family_name )) ||
>     tt_check_trickyness_sfnt_ids( (TT_Face)face )                          )
>  return TRUE;
>
> return FALSE;
>
> If I'm misunderstanding your proposal, please let me know.
>
>

You are correct. Sequential if-conditions are the same as ||.
The order matters of course. Your version above avoids (shortcuts)
checksumming if the family name is ok.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]