.. index:: pair: class; EE::Graphics::FontManager .. _doxid-class_e_e_1_1_graphics_1_1_font_manager: class EE::Graphics::FontManager =============================== .. toctree:: :hidden: Overview ~~~~~~~~ The :ref:`Font ` Manager is a singleton class that manages all the instance of fonts instanciated. And releases the font instances automatically. So the user doesn't need to release any font instance. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class FontManager: public :ref:`EE::System::ResourceManager` { public: // construction virtual :target:`~FontManager`(); // methods :ref:`Graphics::Font`* :ref:`add`(:ref:`Graphics::Font`* Font); :ref:`Font`* :target:`getColorEmojiFont`() const; void :target:`setColorEmojiFont`(:ref:`Graphics::Font`* font); :ref:`Font`* :target:`getEmojiFont`() const; void :target:`setEmojiFont`(:ref:`Font`* newEmojiFont); const std::vector<:ref:`Font`*>& :target:`getFallbackFonts`() const; bool :target:`hasFallbackFonts`() const; bool :target:`addFallbackFont`(:ref:`Font`* fallbackFont); bool :target:`removeFallbackFont`(:ref:`Font`* fallbackFont); :ref:`FontHinting` :target:`getHinting`() const; void :target:`setHinting`(:ref:`FontHinting` hinting); :ref:`FontAntialiasing` :target:`getAntialiasing`() const; void :target:`setAntialiasing`(:ref:`FontAntialiasing` antialiasing); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual T* :ref:`add`(T* resource); bool :ref:`remove`(T* resource, bool remove = true); bool :ref:`removeById`(const :ref:`String::HashType`& id, bool remove = true); bool :ref:`removeByName`(const std::string& name, bool remove = true); T* :ref:`getByName`(const std::string& name); T* :ref:`getById`(const :ref:`String::HashType`& id); :ref:`Uint32` :ref:`getCount`(); :ref:`Uint32` :ref:`getCount`(const std::string& name); :ref:`Uint32` :ref:`getCount`(const :ref:`String::HashType`& id); bool :ref:`exists`(const std::string& name); bool :ref:`existsId`(const :ref:`String::HashType`& id); void :ref:`destroy`(); void :ref:`printNames`(); :ref:`UnorderedMap`<:ref:`String::HashType`, T*>& :ref:`getResources`(); const bool& :ref:`isDestroying`() const; template void :ref:`each`(Predicate pred) const; template void :ref:`each`(Predicate pred); template T* :ref:`findIf`(Predicate pred) const; template T* :ref:`findIf`(Predicate pred); .. _details-class_e_e_1_1_graphics_1_1_font_manager: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ The :ref:`Font ` Manager is a singleton class that manages all the instance of fonts instanciated. And releases the font instances automatically. So the user doesn't need to release any font instance. Methods ------- .. index:: pair: function; add .. _doxid-class_e_e_1_1_graphics_1_1_font_manager_1a2fcf1083e5d3d6995e8882ed5e0230df: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Graphics::Font`* add(:ref:`Graphics::Font`* Font) Adds a new font to the manager.