FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::FreeTypeFont Class Reference

Classes

struct  Info
 

Public Member Functions

 FreeTypeFont (FreeTypeFont const &r)=delete
 
FreeTypeFontoperator= (FreeTypeFont const &r)=delete
 
bool loadFromFile (std::filesystem::path const &filePath)
 
bool loadFromMemory (void const *data, std::size_t size)
 
Info const & getInfo () const
 
Glyph const & getGlyph (uint32_t codePoint, fge::CharacterSize characterSize, bool bold, float outlineThickness=0) const
 
bool hasGlyph (uint32_t codePoint) const
 
float getKerning (uint32_t first, uint32_t second, fge::CharacterSize characterSize, bool bold=false) const
 
float getLineSpacing (fge::CharacterSize characterSize) const
 
float getUnderlinePosition (fge::CharacterSize characterSize) const
 
float getUnderlineThickness (fge::CharacterSize characterSize) const
 
fge::vulkan::TextureImage const & getTexture (fge::CharacterSize characterSize) const
 
void setSmooth (bool smooth)
 
bool isSmooth () const
 
std::vector< long > getAvailableSize () const
 

The documentation for this class was generated from the following file: