Logo Search packages:      
Sourcecode: pango-graphite version File versions  Download package

bool gr::FreetypeFont::FontHasGraphiteTables ( FT_Face  face  )  [static, inherited]

Returns true if the given arguments specify a font that contains Graphite tables—specfically an “Silf” table.

face FT_Face handle
true if this font has the silf table

Definition at line 180 of file FreetypeFont.cpp.

Referenced by FontHasGraphiteTables().


  FT_ULong len = 0;
  // need Freetype 2.1.4 and up
  FT_Error error = FT_Load_Sfnt_Table(face, FT_MAKE_TAG('S','i','l','f'), 0, 0, &len);

  return (error == 0) && (len > 0);

Generated by  Doxygen 1.6.0   Back to index