Loading...
Searching...
No Matches
Font.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
182 const Glyph& getGlyph(Uint32 codePoint, unsigned int characterSize, bool bold, float outlineThickness = 0) const;
218 float getKerning(Uint32 first, Uint32 second, unsigned int characterSize, bool bold = false) const;
const Glyph & getGlyph(Uint32 codePoint, unsigned int characterSize, bool bold, float outlineThickness=0) const
Retrieve a glyph of the font.
const Texture & getTexture(unsigned int characterSize) const
Retrieve the texture containing the loaded glyphs of a certain size.
float getUnderlinePosition(unsigned int characterSize) const
Get the position of the underline.
float getKerning(Uint32 first, Uint32 second, unsigned int characterSize, bool bold=false) const
Get the kerning offset of two glyphs.
bool loadFromMemory(const void *data, std::size_t sizeInBytes)
Load the font from a file in memory.
float getUnderlineThickness(unsigned int characterSize) const
Get the thickness of the underline.
bool hasGlyph(Uint32 codePoint) const
Determine if this font has a glyph representing the requested code point.
Definition AlResource.hpp:35