freetype-devel
[Top][All Lists]
Advanced

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

Re: [Freetype] Re: [Devel] Getting number of shapes in Font File


From: Werner LEMBERG
Subject: Re: [Freetype] Re: [Devel] Getting number of shapes in Font File
Date: Mon, 09 Aug 2004 15:25:48 +0200 (CEST)

> Yes, I meant TT_Load_GSUB_Table; I don't think this FT_Face structure is
> available/ accessible in this function. 

???

Looking into the `TLAYOUT' branch of FreeType 2's CVS (which contains
Masatake's extensions to make the OpenType stuff work with
FreeType 2), I see that the function is defined like this:

  EXPORT_FUNC
  FT_Error  TT_Load_GSUB_Table( FT_Face          face,
                                TTO_GSUBHeader** retptr,
                                TTO_GDEFHeader*  gdef )
 
So you directly have the `FT_Face' structure available!

The same is true for FreeType 1:

  FT_EXPORT_FUNC( TT_Error )
  TT_Load_GSUB_Table( TT_Face          face,   
                      TTO_GSUBHeader*  retptr,
                      TTO_GDEFHeader*  gdef )

Here you have to use the `TT_Get_Face_Properties' function to extract
the value of the `num_Glyphs' variable.


    Werner



reply via email to

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