20 #ifndef GNASH_FREETYPE_H
21 #define GNASH_FREETYPE_H
29 # include <ft2build.h>
30 # include FT_FREETYPE_H
76 static std::unique_ptr<FreetypeGlyphsProvider>
createFace(
77 const std::string&
name,
bool bold,
bool italic);
104 std::unique_ptr<SWF::ShapeRecord>
getGlyph(std::uint16_t
code,
155 bool getFontFilename(
const std::string& name,
bool bold,
bool italic,
156 std::string& filename);
164 static std::mutex m_lib_mutex;
167 static FT_Library m_lib;
171 #endif // USE_FREETYPE
178 #endif // GNASH_FREETYPE_H
static std::unique_ptr< FreetypeGlyphsProvider > createFace(const std::string &name, bool bold, bool italic)
Named constructor for a face-bound rasterizer.
Definition: FreetypeGlyphsProvider.cpp:393
float descent() const
Return the font's descender in terms of its own EM square.
Definition: FreetypeGlyphsProvider.cpp:408
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
code
Definition: GnashKey.h:43
~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
Truetype font rasterizer/converter based on freetype library.
Definition: FreetypeGlyphsProvider.h:56
std::unique_ptr< SWF::ShapeRecord > getGlyph(std::uint16_t code, float &advance)
Return the given DisplayObject glyph as a shape DisplayObject definition in unitsPerEM() coordinates...
Definition: FreetypeGlyphsProvider.cpp:552
std::string name
Definition: LocalConnection_as.cpp:149
Definition: GnashKey.h:331