Go to the documentation of this file.
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
std::string name
Definition: LocalConnection_as.cpp:149
void log_debug(StringType msg, Args... args)
Definition: log.h:301
std::int32_t y
Definition: BitmapData_as.cpp:435
#define _(String)
Definition: log.h:44
Truetype font rasterizer/converter based on freetype library.
Definition: FreetypeGlyphsProvider.h:57
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
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
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
void log_error(StringType msg, Args... args)
Definition: log.h:283
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
code
Definition: GnashKey.h:44
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
~FreetypeGlyphsProvider()
Destructor.
Definition: FreetypeGlyphsProvider.cpp:558
float descent() const
Return the font's descender in terms of its own EM square.
Definition: FreetypeGlyphsProvider.cpp:408
@ j
Definition: GnashKey.h:156
#define DEFAULT_FONTFILE
Definition: gnashconfig.h:63
@ f
Definition: GnashKey.h:152
int getSWFVersion(const as_environment &env)
Definition: as_environment.cpp:657
@ SWF
Definition: GnashKey.h:331
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
std::int32_t x
Definition: BitmapData_as.cpp:434