Gnash  0.8.11dev
Functions
gnash::fontlib Namespace Reference

Library management. More...

Functions

void clear ()
 Clean up the font library. More...
 
boost::intrusive_ptr< Fontget_default_font ()
 Return a default device font. More...
 
Fontget_font (const std::string &name, bool bold, bool italic)
 
void add_font (Font *f)
 

Detailed Description

Library management.

Font library control. gnash is able to substitute fonts from the font library, in case a movie lacks glyphs for a declared font. This would come into play since in recent versions of SWF, the movie is allowed to use "system fonts". E.g. it can declare a font named "Arial", but not provide glyphs for it, and then the OS is expected to provide the font or a suitable replacement.

Function Documentation

§ add_font()

void gnash::fontlib::add_font ( Font f)

§ clear()

void gnash::fontlib::clear ( )

§ get_default_font()

boost::intrusive_ptr< Font > gnash::fontlib::get_default_font ( )

Return a default device font.

References DEFAULT_FONT_NAME.

Referenced by gnash::TextField::TextField(), and gnash::textformat_class_init().

§ get_font()

Font * gnash::fontlib::get_font ( const std::string &  name,
bool  bold,
bool  italic 
)