[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] FreeType version 2.5.0 has been released
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] FreeType version 2.5.0 has been released |
Date: |
Fri, 21 Jun 2013 07:18:54 +0200 (CEST) |
> Out of interest, how could a user check if the Adobe CFF engine, or
> the old engine, was enabled?
Two cases:
(1) If the function FT_Property_Get isn't available, the new engine
is not available, too, because it was added later.
(2) You make the following call:
FT_Library library;
FT_Face face;
FT_UInt hinting_engine;
FT_Init_FreeType( &library );
FT_Property_Get( library, "cff",
"hinting-engine", &hinting_engine );
if ( hinting_engine == FT_CFF_HINTING_ADOBE )
printf("we are using the new CFF engine");
Werner