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