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

gr::FreetypeFont::FreetypeFont ( FT_Face  ftFace,
int  dpiX = 72,
int  dpiY = 72,
FT_Int32  load_flags = FT_LOAD_DEFAULT 
)

Alternative user constructor. Constructs the font from the supplied FT_Face.

Parameters:
ftFace the FT_Face handle to initialise from (must not be null)

Definition at line 29 of file FreetypeFont.cpp.

References setFace().

  : Font(),
  m_ftFace(face),
  m_ft_load_flags(load_flags),
  m_clrFore(kclrBlack),
  m_clrBack(kclrTransparent),
  m_ascent(0),
  m_descent(0),
  m_emSquare(0),
  m_dpiX(dpiX),
  m_dpiY(dpiY)
{
  if (face)
  {
    setFace(face);
  }
}


Generated by  Doxygen 1.6.0   Back to index