25#ifndef TGUI_FONT_FACTORY_HPP
26#define TGUI_FONT_FACTORY_HPP
28#include <TGUI/Backend/Font/BackendFont.hpp>
30#if !TGUI_EXPERIMENTAL_USE_STD_MODULE
36TGUI_MODULE_EXPORT
namespace tgui
54 TGUI_NODISCARD
virtual std::shared_ptr<BackendFont>
createFont() = 0;
60 template <
typename FontType>
69 TGUI_NODISCARD std::shared_ptr<BackendFont>
createFont()
override
71 return std::make_shared<FontType>();
Class that creates font objects of a given type.
Definition BackendFontFactory.hpp:62
std::shared_ptr< BackendFont > createFont() override
Creates a new empty font object.
Definition BackendFontFactory.hpp:69
Base class for the font factory that is responsible for creating a font object specific to the font b...
Definition BackendFontFactory.hpp:42
virtual 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:38