Gnash
0.8.11dev
|
Library management. More...
Functions | |
void | clear () |
Clean up the font library. More... | |
boost::intrusive_ptr< Font > | get_default_font () |
Return a default device font. More... | |
Font * | get_font (const std::string &name, bool bold, bool italic) |
void | add_font (Font *f) |
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.
void gnash::fontlib::add_font | ( | Font * | f | ) |
Referenced by gnash::SWFMovieDefinition::get_bytes_total().
void gnash::fontlib::clear | ( | ) |
Clean up the font library.
Referenced by gnash::movie_root::advance(), gnash::movie_root::display(), gnash::movie_root::flushHigherPriorityActionQueues(), gnash::movie_root::getRegisteredClass(), gnash::VaapiSurface::height(), gnash::renderer::rawfb::RawFBDevice::isSingleBuffered(), gnash::movie_root::keyEvent(), gnash::movie_root::removeAdvanceCallback(), gnash::movie_root::reset(), gnash::PropertyList::visitValues(), and gnash::movie_root::~movie_root().
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().
Font * gnash::fontlib::get_font | ( | const std::string & | name, |
bool | bold, | ||
bool | italic | ||
) |
References gnash::key::f.
Referenced by gnash::SWFMovieDefinition::get_bytes_total(), gnash::registerTextFieldNative(), gnash::TextField::setFont(), and gnash::textformat_class_init().