25#ifndef TGUI_FONT_FACTORY_HPP
26#define TGUI_FONT_FACTORY_HPP
28#include <TGUI/Backend/Font/BackendFont.hpp>
51 [[nodiscard]]
virtual std::shared_ptr<BackendFont>
createFont() = 0;
57 template <
typename FontType>
65 [[nodiscard]] std::shared_ptr<BackendFont>
createFont()
override
67 return std::make_shared<FontType>();
Class that creates font objects of a given type.
Definition BackendFontFactory.hpp:59
std::shared_ptr< BackendFont > createFont() override
Creates a new empty font object.
Definition BackendFontFactory.hpp:65
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:37