neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_font_manager Class Referenceabstract

#include <i_font_manager.hpp>

Inheritance diagram for neogfx::i_font_manager:
neolib::i_basic_cookie_consumer< CookieType > neolib::services::i_service neogfx::font_manager

Classes

struct  bad_font_family_index
 
struct  bad_font_style_index
 
struct  no_fallback_font
 

Public Member Functions

virtual ~i_font_manager ()=default
 
virtual void * font_library_handle () const =0
 
virtual i_optional< font_info > const & default_system_font_info (system_font_role aRole) const =0
 
virtual const i_fallback_font_infodefault_fallback_font_info () const =0
 
virtual i_native_font_face & create_default_font (const i_device_resolution &aDevice)=0
 
virtual bool has_fallback_font (i_native_font_face const &aExistingFont) const =0
 
virtual i_native_font_face & create_fallback_font (i_native_font_face const &aExistingFont)=0
 
virtual i_native_font_face & create_font (i_string const &aFamilyName, neogfx::font_style aStyle, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual i_native_font_face & create_font (i_string const &aFamilyName, i_string const &aStyleName, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual i_native_font_face & create_font (const font_info &aInfo, const i_device_resolution &aDevice)=0
 
virtual i_native_font_face & create_font (i_native_font &aFont, neogfx::font_style aStyle, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual i_native_font_face & create_font (i_native_font &aFont, i_string const &aStyleName, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual bool is_font_file (i_string const &aFileName) const =0
 
virtual i_native_font_face & load_font_from_file (i_string const &aFileName, i_device_resolution const &aDevice)=0
 
virtual i_native_font_face & load_font_from_file (i_string const &aFileName, neogfx::font_style aStyle, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual i_native_font_face & load_font_from_file (i_string const &aFileName, i_string const &aStyleName, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual i_native_font_face & load_font_from_memory (const void *aData, std::size_t aSizeInBytes, i_device_resolution const &aDevice)=0
 
virtual i_native_font_face & load_font_from_memory (const void *aData, std::size_t aSizeInBytes, neogfx::font_style aStyle, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual i_native_font_face & load_font_from_memory (const void *aData, std::size_t aSizeInBytes, i_string const &aStyleName, font::point_size aSize, const i_device_resolution &aDevice)=0
 
virtual uint32_t font_family_count () const =0
 
virtual i_string const & font_family (uint32_t aFamilyIndex) const =0
 
virtual uint32_t font_style_count (uint32_t aFamilyIndex) const =0
 
virtual neogfx::font_style font_style (uint32_t aFamilyIndex, uint32_t aStyleIndex) const =0
 
virtual i_string const & font_style_name (uint32_t aFamilyIndex, uint32_t aStyleIndex) const =0
 
virtual const font & font_from_id (font_id aId) const =0
 
virtual i_glyph_text_factoryglyph_text_factory () const =0
 
virtual const i_texture_atlasglyph_atlas () const =0
 
virtual i_texture_atlasglyph_atlas ()=0
 
virtual const i_emoji_atlasemoji_atlas () const =0
 
virtual i_emoji_atlasemoji_atlas ()=0
 
bool has_font (std::string const &aFamily, std::string const &aStyle) const
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Static Public Member Functions

static uuid const & iid ()
 

Friends

class native_font
 

Additional Inherited Members

Detailed Description

Definition at line 55 of file i_font_manager.hpp.

Constructor & Destructor Documentation

◆ ~i_font_manager()

virtual neogfx::i_font_manager::~i_font_manager ( )
virtualdefault

Member Function Documentation

◆ create_default_font()

virtual i_native_font_face & neogfx::i_font_manager::create_default_font ( const i_device_resolution aDevice)
pure virtual

Implemented in neogfx::font_manager.

◆ create_fallback_font()

virtual i_native_font_face & neogfx::i_font_manager::create_fallback_font ( i_native_font_face const &  aExistingFont)
pure virtual

Implemented in neogfx::font_manager.

◆ create_font() [1/5]

virtual i_native_font_face & neogfx::i_font_manager::create_font ( const font_info &  aInfo,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ create_font() [2/5]

virtual i_native_font_face & neogfx::i_font_manager::create_font ( i_native_font &  aFont,
i_string const &  aStyleName,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ create_font() [3/5]

virtual i_native_font_face & neogfx::i_font_manager::create_font ( i_native_font &  aFont,
neogfx::font_style  aStyle,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ create_font() [4/5]

virtual i_native_font_face & neogfx::i_font_manager::create_font ( i_string const &  aFamilyName,
i_string const &  aStyleName,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ create_font() [5/5]

virtual i_native_font_face & neogfx::i_font_manager::create_font ( i_string const &  aFamilyName,
neogfx::font_style  aStyle,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ default_fallback_font_info()

virtual const i_fallback_font_info & neogfx::i_font_manager::default_fallback_font_info ( ) const
pure virtual

Implemented in neogfx::font_manager.

◆ default_system_font_info()

virtual i_optional< font_info > const & neogfx::i_font_manager::default_system_font_info ( system_font_role  aRole) const
pure virtual

Implemented in neogfx::font_manager.

◆ emoji_atlas() [1/2]

virtual const i_emoji_atlas & neogfx::i_font_manager::emoji_atlas ( ) const
pure virtual

Implemented in neogfx::font_manager.

◆ emoji_atlas() [2/2]

virtual i_emoji_atlas & neogfx::i_font_manager::emoji_atlas ( )
pure virtual

Implemented in neogfx::font_manager.

◆ font_family()

virtual i_string const & neogfx::i_font_manager::font_family ( uint32_t  aFamilyIndex) const
pure virtual

Implemented in neogfx::font_manager.

◆ font_family_count()

virtual uint32_t neogfx::i_font_manager::font_family_count ( ) const
pure virtual

Implemented in neogfx::font_manager.

◆ font_from_id()

virtual const font & neogfx::i_font_manager::font_from_id ( font_id  aId) const
pure virtual

Implemented in neogfx::font_manager.

◆ font_library_handle()

virtual void * neogfx::i_font_manager::font_library_handle ( ) const
pure virtual

Implemented in neogfx::font_manager.

◆ font_style()

virtual neogfx::font_style neogfx::i_font_manager::font_style ( uint32_t  aFamilyIndex,
uint32_t  aStyleIndex 
) const
pure virtual

Implemented in neogfx::font_manager.

◆ font_style_count()

virtual uint32_t neogfx::i_font_manager::font_style_count ( uint32_t  aFamilyIndex) const
pure virtual

Implemented in neogfx::font_manager.

◆ font_style_name()

virtual i_string const & neogfx::i_font_manager::font_style_name ( uint32_t  aFamilyIndex,
uint32_t  aStyleIndex 
) const
pure virtual

Implemented in neogfx::font_manager.

◆ glyph_atlas() [1/2]

virtual const i_texture_atlas & neogfx::i_font_manager::glyph_atlas ( ) const
pure virtual

Implemented in neogfx::font_manager.

◆ glyph_atlas() [2/2]

virtual i_texture_atlas & neogfx::i_font_manager::glyph_atlas ( )
pure virtual

Implemented in neogfx::font_manager.

◆ glyph_text_factory()

virtual i_glyph_text_factory & neogfx::i_font_manager::glyph_text_factory ( ) const
pure virtual

Implemented in neogfx::font_manager.

◆ has_fallback_font()

virtual bool neogfx::i_font_manager::has_fallback_font ( i_native_font_face const &  aExistingFont) const
pure virtual

Implemented in neogfx::font_manager.

◆ has_font()

bool neogfx::i_font_manager::has_font ( std::string const &  aFamily,
std::string const &  aStyle 
) const
inline

Definition at line 101 of file i_font_manager.hpp.

◆ iid()

static uuid const & neogfx::i_font_manager::iid ( )
inlinestatic

Definition at line 114 of file i_font_manager.hpp.

◆ is_font_file()

virtual bool neogfx::i_font_manager::is_font_file ( i_string const &  aFileName) const
pure virtual

Implemented in neogfx::font_manager.

◆ load_font_from_file() [1/3]

virtual i_native_font_face & neogfx::i_font_manager::load_font_from_file ( i_string const &  aFileName,
i_device_resolution const &  aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ load_font_from_file() [2/3]

virtual i_native_font_face & neogfx::i_font_manager::load_font_from_file ( i_string const &  aFileName,
i_string const &  aStyleName,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ load_font_from_file() [3/3]

virtual i_native_font_face & neogfx::i_font_manager::load_font_from_file ( i_string const &  aFileName,
neogfx::font_style  aStyle,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ load_font_from_memory() [1/3]

virtual i_native_font_face & neogfx::i_font_manager::load_font_from_memory ( const void *  aData,
std::size_t  aSizeInBytes,
i_device_resolution const &  aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ load_font_from_memory() [2/3]

virtual i_native_font_face & neogfx::i_font_manager::load_font_from_memory ( const void *  aData,
std::size_t  aSizeInBytes,
i_string const &  aStyleName,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

◆ load_font_from_memory() [3/3]

virtual i_native_font_face & neogfx::i_font_manager::load_font_from_memory ( const void *  aData,
std::size_t  aSizeInBytes,
neogfx::font_style  aStyle,
font::point_size  aSize,
const i_device_resolution aDevice 
)
pure virtual

Implemented in neogfx::font_manager.

Friends And Related Symbol Documentation

◆ native_font

friend class native_font
friend

Definition at line 57 of file i_font_manager.hpp.


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