GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ft_manager Class Reference
Collaboration diagram for ft_manager:
Collaboration graph
[legend]

Static Public Member Functions

static void cleanup_instance (void)
static void font_destroyed (FT_Face face)
static FT_Face get_font (const std::string &name, const std::string &weight, const std::string &angle, double size)
static bool instance_ok (void)

Private Types

typedef std::map< ft_key, FT_Face > ft_cache
typedef std::pair< std::string,
double
ft_key

Private Member Functions

 ft_manager (const ft_manager &)
 ft_manager (void)
 ~ft_manager (void)
void do_font_destroyed (FT_Face face)
FT_Face do_get_font (const std::string &name, const std::string &weight, const std::string &angle, double size)
ft_manageroperator= (const ft_manager &)

Private Attributes

ft_cache cache
bool fontconfig_initialized
bool freetype_initialized
FT_Library library

Static Private Attributes

static ft_managerinstance = 0

Detailed Description

Definition at line 75 of file txt-eng-ft.cc.

Member Typedef Documentation

typedef std::map<ft_key, FT_Face> ft_manager::ft_cache
private

Definition at line 122 of file txt-eng-ft.cc.

typedef std::pair<std::string, double> ft_manager::ft_key
private

Definition at line 121 of file txt-eng-ft.cc.

Constructor & Destructor Documentation

ft_manager::ft_manager ( const ft_manager )
private
ft_manager::ft_manager ( void  )
inlineprivate

Definition at line 137 of file txt-eng-ft.cc.

References error().

ft_manager::~ft_manager ( void  )
inlineprivate

Definition at line 153 of file txt-eng-ft.cc.

Member Function Documentation

static void ft_manager::cleanup_instance ( void  )
inlinestatic

Definition at line 101 of file txt-eng-ft.cc.

void ft_manager::do_font_destroyed ( FT_Face  face)
inlineprivate

Definition at line 284 of file txt-eng-ft.cc.

FT_Face ft_manager::do_get_font ( const std::string &  name,
const std::string &  weight,
const std::string &  angle,
double  size 
)
inlineprivate

Definition at line 169 of file txt-eng-ft.cc.

References ft_face_destroyed(), match(), size(), and warning().

static void ft_manager::font_destroyed ( FT_Face  face)
inlinestatic

Definition at line 111 of file txt-eng-ft.cc.

Referenced by ft_face_destroyed().

static FT_Face ft_manager::get_font ( const std::string &  name,
const std::string &  weight,
const std::string &  angle,
double  size 
)
inlinestatic

Definition at line 103 of file txt-eng-ft.cc.

Referenced by ft_render::ft_font::get_face().

static bool ft_manager::instance_ok ( void  )
inlinestatic

Definition at line 79 of file txt-eng-ft.cc.

References singleton_cleanup_list::add(), and error().

ft_manager& ft_manager::operator= ( const ft_manager )
private

Member Data Documentation

ft_cache ft_manager::cache
private

Definition at line 127 of file txt-eng-ft.cc.

bool ft_manager::fontconfig_initialized
private

Definition at line 299 of file txt-eng-ft.cc.

bool ft_manager::freetype_initialized
private

Definition at line 298 of file txt-eng-ft.cc.

ft_manager * ft_manager::instance = 0
staticprivate

Definition at line 119 of file txt-eng-ft.cc.

FT_Library ft_manager::library
private

Definition at line 297 of file txt-eng-ft.cc.


The documentation for this class was generated from the following file: