Mountain  1.0.0
Simple C++ 2D Game Framework
Mountain::Font Class Reference

Holds the necessary information to draw text using a Font. More...

#include <font.hpp>

+ Inheritance diagram for Mountain::Font:
+ Collaboration diagram for Mountain::Font:

Public Member Functions

MOUNTAIN_API bool_t SetSourceData (const Pointer< File > &file, uint32_t size)
 This also loads the font.
 
MOUNTAIN_API void ResetSourceData () override
 This also unloads the font.
 
MOUNTAIN_API Vector2 CalcTextSize (std::string_view text) const
 

Static Public Attributes

static MOUNTAIN_API constexpr std::array< const char_t *, 1 > FileExtensions
 Allowed extensions for font files. More...
 

Friends

class Draw
 

Detailed Description

Holds the necessary information to draw text using a Font.

Definition at line 15 of file font.hpp.

Member Data Documentation

◆ FileExtensions

MOUNTAIN_API constexpr std::array<const char_t*, 1> Mountain::Font::FileExtensions
static
Initial value:
{
".ttf"
}

Allowed extensions for font files.

Definition at line 20 of file font.hpp.


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