20 #ifndef GNASH_FREETYPE_H
21 #define GNASH_FREETYPE_H
25 #include <boost/thread/mutex.hpp>
26 #include <boost/cstdint.hpp>
29 # include <ft2build.h>
30 # include FT_FREETYPE_H
76 static std::auto_ptr<FreetypeGlyphsProvider>
createFace(
77 const std::string&
name,
bool bold,
bool italic);
104 std::auto_ptr<SWF::ShapeRecord>
getGlyph(boost::uint16_t
code,
155 bool getFontFilename(
const std::string& name,
bool bold,
bool italic,
156 std::string& filename);
164 static boost::mutex m_lib_mutex;
167 static FT_Library m_lib;
171 #endif // USE_FREETYPE
178 #endif // GNASH_FREETYPE_H
float descent() const
Return the font's descender in terms of its own EM square.
Definition: FreetypeGlyphsProvider.cpp:408
code
Definition: GnashKey.h:43
static std::auto_ptr< FreetypeGlyphsProvider > createFace(const std::string &name, bool bold, bool italic)
Named constructor for a face-bound rasterizer.
Definition: FreetypeGlyphsProvider.cpp:393
~FreetypeGlyphsProvider()
Destructor.
Definition: FreetypeGlyphsProvider.cpp:558
unsigned short unitsPerEM() const
Return the number of units of glyphs EM.
Definition: FreetypeGlyphsProvider.cpp:401
float ascent() const
Return the font's ascender in terms of its EM own square.
Definition: FreetypeGlyphsProvider.cpp:415
std::auto_ptr< SWF::ShapeRecord > getGlyph(boost::uint16_t code, float &advance)
Return the given DisplayObject glyph as a shape DisplayObject definition in unitsPerEM() coordinates...
Definition: FreetypeGlyphsProvider.cpp:552
Truetype font rasterizer/converter based on freetype library.
Definition: FreetypeGlyphsProvider.h:56
std::string name
Definition: LocalConnection_as.cpp:151
Definition: GnashKey.h:331