GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::ft_manager Class Reference
Collaboration diagram for octave::ft_manager:

Public Member Functions

 ft_manager (const ft_manager &)=delete
 
ft_manageroperator= (const ft_manager &)=delete
 

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, doubleft_key
 

Private Member Functions

 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)
 

Private Attributes

ft_cache cache
 
bool fontconfig_initialized
 
bool freetype_initialized
 
FT_Library library
 

Static Private Attributes

static ft_managerinstance = nullptr
 

Detailed Description

Definition at line 96 of file ft-text-renderer.cc.

Member Typedef Documentation

◆ ft_cache

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

Definition at line 183 of file ft-text-renderer.cc.

◆ ft_key

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

Definition at line 182 of file ft-text-renderer.cc.

Constructor & Destructor Documentation

◆ ft_manager() [1/2]

octave::ft_manager::ft_manager ( void  )
inlineprivate

Definition at line 101 of file ft-text-renderer.cc.

References error().

◆ ft_manager() [2/2]

octave::ft_manager::ft_manager ( const ft_manager )
delete

◆ ~ft_manager()

octave::ft_manager::~ft_manager ( void  )
inlineprivate

Definition at line 127 of file ft-text-renderer.cc.

Member Function Documentation

◆ cleanup_instance()

static void octave::ft_manager::cleanup_instance ( void  )
inlinestatic

Definition at line 162 of file ft-text-renderer.cc.

◆ do_font_destroyed()

void octave::ft_manager::do_font_destroyed ( FT_Face  face)
inlineprivate

Definition at line 327 of file ft-text-renderer.cc.

◆ do_get_font()

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

◆ font_destroyed()

static void octave::ft_manager::font_destroyed ( FT_Face  face)
inlinestatic

Definition at line 172 of file ft-text-renderer.cc.

Referenced by octave::ft_face_destroyed().

◆ get_font()

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

Definition at line 164 of file ft-text-renderer.cc.

References name.

Referenced by octave::ft_text_renderer::ft_font::get_face().

◆ instance_ok()

static bool octave::ft_manager::instance_ok ( void  )
inlinestatic

Definition at line 144 of file ft-text-renderer.cc.

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

◆ operator=()

ft_manager& octave::ft_manager::operator= ( const ft_manager )
delete

Member Data Documentation

◆ cache

ft_cache octave::ft_manager::cache
private

Definition at line 188 of file ft-text-renderer.cc.

◆ fontconfig_initialized

bool octave::ft_manager::fontconfig_initialized
private

Definition at line 342 of file ft-text-renderer.cc.

◆ freetype_initialized

bool octave::ft_manager::freetype_initialized
private

Definition at line 341 of file ft-text-renderer.cc.

◆ instance

ft_manager * octave::ft_manager::instance = nullptr
staticprivate

Definition at line 180 of file ft-text-renderer.cc.

◆ library

FT_Library octave::ft_manager::library
private

Definition at line 340 of file ft-text-renderer.cc.


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