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

#include <font_manager.hpp>

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

Classes

struct  error_initializing_font_library
 
struct  failed_to_allocate_glyph_space
 
struct  no_matching_font_found
 

Public Member Functions

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

Protected Member Functions

void add_ref (font_id aId) override
 
void release (font_id aId) override
 
long use_count (font_id aId) const override
 

Friends

class native_font_face
 
neolib::small_cookie item_cookie (const id_cache_entry &)
 

Additional Inherited Members

- Static Public Member Functions inherited from neogfx::i_font_manager
static uuid const & iid ()
 

Detailed Description

Definition at line 48 of file font_manager.hpp.

Constructor & Destructor Documentation

◆ font_manager()

neogfx::font_manager::font_manager ( )

◆ ~font_manager()

neogfx::font_manager::~font_manager ( )

Member Function Documentation

◆ add_ref()

void neogfx::font_manager::add_ref ( font_id  aId)
overrideprotected

◆ create_default_font()

i_native_font_face & neogfx::font_manager::create_default_font ( const i_device_resolution aDevice)
overridevirtual

◆ create_fallback_font()

i_native_font_face & neogfx::font_manager::create_fallback_font ( const i_native_font_face &  aExistingFont)
overridevirtual

◆ create_font() [1/5]

i_native_font_face & neogfx::font_manager::create_font ( const font_info &  aInfo,
const i_device_resolution aDevice 
)
overridevirtual

◆ create_font() [2/5]

i_native_font_face & neogfx::font_manager::create_font ( i_native_font &  aFont,
i_string const &  aStyleName,
font::point_size  aSize,
const i_device_resolution aDevice 
)
overridevirtual

◆ create_font() [3/5]

i_native_font_face & neogfx::font_manager::create_font ( i_native_font &  aFont,
neogfx::font_style  aStyle,
font::point_size  aSize,
const i_device_resolution aDevice 
)
overridevirtual

◆ create_font() [4/5]

i_native_font_face & neogfx::font_manager::create_font ( i_string const &  aFamilyName,
i_string const &  aStyleName,
font::point_size  aSize,
const i_device_resolution aDevice 
)
overridevirtual

◆ create_font() [5/5]

i_native_font_face & neogfx::font_manager::create_font ( i_string const &  aFamilyName,
neogfx::font_style  aStyle,
font::point_size  aSize,
const i_device_resolution aDevice 
)
overridevirtual

◆ default_fallback_font_info()

const i_fallback_font_info & neogfx::font_manager::default_fallback_font_info ( ) const
overridevirtual

◆ default_system_font_info()

i_optional< font_info > const & neogfx::font_manager::default_system_font_info ( system_font_role  aRole) const
overridevirtual

◆ emoji_atlas() [1/2]

const i_emoji_atlas & neogfx::font_manager::emoji_atlas ( ) const
overridevirtual

◆ emoji_atlas() [2/2]

i_emoji_atlas & neogfx::font_manager::emoji_atlas ( )
overridevirtual

◆ font_family()

i_string const & neogfx::font_manager::font_family ( uint32_t  aFamilyIndex) const
overridevirtual

◆ font_family_count()

uint32_t neogfx::font_manager::font_family_count ( ) const
overridevirtual

◆ font_from_id()

const font & neogfx::font_manager::font_from_id ( font_id  aId) const
overridevirtual

◆ font_library_handle()

void * neogfx::font_manager::font_library_handle ( ) const
overridevirtual

◆ font_style()

neogfx::font_style neogfx::font_manager::font_style ( uint32_t  aFamilyIndex,
uint32_t  aStyleIndex 
) const
overridevirtual

◆ font_style_count()

uint32_t neogfx::font_manager::font_style_count ( uint32_t  aFamilyIndex) const
overridevirtual

◆ font_style_name()

i_string const & neogfx::font_manager::font_style_name ( uint32_t  aFamilyIndex,
uint32_t  aStyleIndex 
) const
overridevirtual

◆ glyph_atlas() [1/2]

const i_texture_atlas & neogfx::font_manager::glyph_atlas ( ) const
overridevirtual

◆ glyph_atlas() [2/2]

i_texture_atlas & neogfx::font_manager::glyph_atlas ( )
overridevirtual

◆ glyph_text_factory()

i_glyph_text_factory & neogfx::font_manager::glyph_text_factory ( ) const
overridevirtual

◆ has_fallback_font()

bool neogfx::font_manager::has_fallback_font ( const i_native_font_face &  aExistingFont) const
overridevirtual

◆ is_font_file()

bool neogfx::font_manager::is_font_file ( i_string const &  aFileName) const
overridevirtual

◆ load_font_from_file() [1/3]

i_native_font_face & neogfx::font_manager::load_font_from_file ( i_string const &  aFileName,
const i_device_resolution aDevice 
)
overridevirtual

◆ load_font_from_file() [2/3]

i_native_font_face & neogfx::font_manager::load_font_from_file ( i_string const &  aFileName,
i_string const &  aStyleName,
font::point_size  aSize,
const i_device_resolution aDevice 
)
overridevirtual

◆ load_font_from_file() [3/3]

i_native_font_face & neogfx::font_manager::load_font_from_file ( i_string const &  aFileName,
neogfx::font_style  aStyle,
font::point_size  aSize,
const i_device_resolution aDevice 
)
overridevirtual

◆ load_font_from_memory() [1/3]

i_native_font_face & neogfx::font_manager::load_font_from_memory ( const void *  aData,
std::size_t  aSizeInBytes,
const i_device_resolution aDevice 
)
overridevirtual

◆ load_font_from_memory() [2/3]

i_native_font_face & neogfx::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 
)
overridevirtual

◆ load_font_from_memory() [3/3]

i_native_font_face & neogfx::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 
)
overridevirtual

◆ release()

void neogfx::font_manager::release ( font_id  aId)
overrideprotected

◆ use_count()

long neogfx::font_manager::use_count ( font_id  aId) const
overrideprotected

Friends And Related Symbol Documentation

◆ item_cookie

neolib::small_cookie item_cookie ( const id_cache_entry &  )
friend

◆ native_font_face

friend class native_font_face
friend

Definition at line 50 of file font_manager.hpp.


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