GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
ft_manager Class Reference
Collaboration diagram for 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, FT_ULong c=0)
 
static octave_map get_system_fonts (void)
 
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 (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_ULong search_code_point)
 

Static Private Member Functions

static octave_map do_get_system_fonts (void)
 

Private Attributes

ft_cache m_cache
 
bool m_fontconfig_initialized
 
bool m_freetype_initialized
 
FT_Library m_library
 

Static Private Attributes

static ft_managerm_instance = nullptr
 

Detailed Description

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

Member Typedef Documentation

◆ ft_cache

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

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

◆ ft_key

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

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

Constructor & Destructor Documentation

◆ ft_manager() [1/2]

ft_manager::ft_manager ( void  )
inlineprivate

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

References error().

◆ ft_manager() [2/2]

ft_manager::ft_manager ( const ft_manager )
delete

◆ ~ft_manager()

ft_manager::~ft_manager ( void  )
inlineprivate

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

Member Function Documentation

◆ cleanup_instance()

static void ft_manager::cleanup_instance ( void  )
inlinestatic

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

◆ do_font_destroyed()

void ft_manager::do_font_destroyed ( FT_Face  face)
inlineprivate

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

◆ do_get_font()

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

◆ do_get_system_fonts()

static octave_map ft_manager::do_get_system_fonts ( void  )
inlinestaticprivate

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

References octave_map::assign(), and octave_map::isempty().

◆ font_destroyed()

static void ft_manager::font_destroyed ( FT_Face  face)
inlinestatic

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

Referenced by ft_face_destroyed().

◆ get_font()

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

◆ get_system_fonts()

static octave_map ft_manager::get_system_fonts ( void  )
inlinestatic

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

Referenced by ft_text_renderer::get_system_fonts().

◆ instance_ok()

static bool ft_manager::instance_ok ( void  )
inlinestatic

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

References singleton_cleanup_list::add().

◆ operator=()

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

Member Data Documentation

◆ m_cache

ft_cache ft_manager::m_cache
private

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

◆ m_fontconfig_initialized

bool ft_manager::m_fontconfig_initialized
private

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

◆ m_freetype_initialized

bool ft_manager::m_freetype_initialized
private

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

◆ m_instance

ft_manager * ft_manager::m_instance = nullptr
staticprivate

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

◆ m_library

FT_Library ft_manager::m_library
private

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


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