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

bool gr::PangoGrFont::FontHasGraphiteTables ( PangoFcFont *  xftFont  )  [static]

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

xftFont XftFont pointer
true if this font has the silf table

Definition at line 104 of file PangoGrFont.cpp.

References gr::FreetypeFont::FontHasGraphiteTables().

      bool isGraphiteFont = false;
      PangoFcFont *l_Font;
      Assert(pangoFont); // shouldn't be null but we play safe anyway
      Assert(PANGO_IS_FC_FONT (pangoFont));
      l_Font = PANGO_FC_FONT(pangoFont);
      FT_Face l_Face = pango_fc_font_lock_face(l_Font);
      isGraphiteFont = FreetypeFont::FontHasGraphiteTables(l_Face);

      return isGraphiteFont;

Generated by  Doxygen 1.6.0   Back to index