26#ifndef TGUI_FONT_FACTORY_HPP
27#define TGUI_FONT_FACTORY_HPP
29#include <TGUI/Backend/Font/BackendFont.hpp>
60 template <
typename FontType>
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: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