GNU Octave  6.2.0
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 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)
 

Static Private Member Functions

static octave_map do_get_system_fonts (void)
 

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 99 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 188 of file ft-text-renderer.cc.

◆ ft_key

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

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

Constructor & Destructor Documentation

◆ ft_manager() [1/2]

octave::ft_manager::ft_manager ( void  )
inlineprivate

Definition at line 104 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 130 of file ft-text-renderer.cc.

Member Function Documentation

◆ cleanup_instance()

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

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

◆ do_font_destroyed()

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

Definition at line 412 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

◆ do_get_system_fonts()

static octave_map octave::ft_manager::do_get_system_fonts ( void  )
inlinestaticprivate

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

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

◆ font_destroyed()

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

Definition at line 177 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 162 of file ft-text-renderer.cc.

References name.

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

◆ get_system_fonts()

static octave_map octave::ft_manager::get_system_fonts ( void  )
inlinestatic

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

Referenced by octave::ft_text_renderer::get_system_fonts().

◆ instance_ok()

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

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

References singleton_cleanup_list::add(), 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 193 of file ft-text-renderer.cc.

◆ fontconfig_initialized

bool octave::ft_manager::fontconfig_initialized
private

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

◆ freetype_initialized

bool octave::ft_manager::freetype_initialized
private

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

◆ instance

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

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

◆ library

FT_Library octave::ft_manager::library
private

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


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