26#ifndef TGUI_BACKEND_FONT_HPP
27#define TGUI_BACKEND_FONT_HPP
29#include <TGUI/Font.hpp>
30#include <TGUI/String.hpp>
84 virtual FontGlyph getGlyph(
char32_t codePoint,
unsigned int characterSize,
bool bold,
float outlineThickness = 0) = 0;
87#ifndef TGUI_REMOVE_DEPRECATED_CODE
101 TGUI_DEPRECATED(
"Extra bold argument should be added") virtual
float getKerning(
char32_t first,
char32_t second,
unsigned int characterSize)
103 return getKerning(first, second, characterSize,
false);
121 virtual float getKerning(
char32_t first,
char32_t second,
unsigned int characterSize,
bool bold) = 0;
Base class for font implementations that depend on the backend.
Definition BackendFont.hpp:41
virtual float getLineSpacing(unsigned int characterSize)=0
Returns the line spacing.
virtual FontGlyph getGlyph(char32_t codePoint, unsigned int characterSize, bool bold, float outlineThickness=0)=0
Retrieve a glyph of the font.
virtual ~BackendFontBase()=default
Virtual destructor.
virtual bool loadFromMemory(const void *data, std::size_t sizeInBytes)=0
Loads a font from memory.
virtual float getKerning(char32_t first, char32_t second, unsigned int characterSize, bool bold)=0
Returns the kerning offset of two glyphs.
virtual bool loadFromFile(const String &filename)=0
Loads a font from a file.
Wrapper class to store strings.
Definition String.hpp:79
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36
Information about a glyph in the font.
Definition Font.hpp:47