26#ifndef TGUI_FONT_FACTORY_HPP
27#define TGUI_FONT_FACTORY_HPP
29#include <TGUI/Backend/Font/BackendFont.hpp>
31#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
37TGUI_MODULE_EXPORT
namespace tgui
56 TGUI_NODISCARD
virtual std::shared_ptr<BackendFont>
createFont() = 0;
63 template <
typename FontType>
72 TGUI_NODISCARD std::shared_ptr<BackendFont>
createFont()
override
74 return std::make_shared<FontType>();
Class that creates font objects of a given type.
Definition BackendFontFactory.hpp:65
TGUI_NODISCARD std::shared_ptr< BackendFont > createFont() override
Creates a new empty font object.
Definition BackendFontFactory.hpp:72
Base class for the font factory that is responsible for creating a font object specific to the font b...
Definition BackendFontFactory.hpp:43
virtual TGUI_NODISCARD std::shared_ptr< BackendFont > createFont()=0
Creates a new empty font object.
virtual ~BackendFontFactory()=default
Virtual destructor.
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39