#include <ttf_Font.hpp>
◆ Font()
pu::ttf::Font::Font |
( |
const u32 |
font_sz | ) |
|
|
inline |
◆ ~Font()
◆ EmptyFontFaceDisposingFunction()
static void pu::ttf::Font::EmptyFontFaceDisposingFunction |
( |
void * |
| ) |
|
|
inlinestatic |
◆ FindValidFontFor()
sdl2::Font pu::ttf::Font::FindValidFontFor |
( |
const char |
ch | ) |
|
◆ GetFontSize()
u32 pu::ttf::Font::GetFontSize |
( |
| ) |
|
|
inline |
◆ GetTextDimensions()
std::pair< u32, u32 > pu::ttf::Font::GetTextDimensions |
( |
const std::string & |
str | ) |
|
◆ IsValidFontFaceIndex()
static constexpr bool pu::ttf::Font::IsValidFontFaceIndex |
( |
const i32 |
index | ) |
|
|
inlinestaticconstexpr |
◆ LoadFromFile()
i32 pu::ttf::Font::LoadFromFile |
( |
const std::string & |
path | ) |
|
◆ LoadFromMemory()
i32 pu::ttf::Font::LoadFromMemory |
( |
void * |
ptr, |
|
|
const size_t |
size, |
|
|
FontFaceDisposingFunction |
disp_fn |
|
) |
| |
◆ RenderText()
◆ Unload()
void pu::ttf::Font::Unload |
( |
const i32 |
font_idx | ) |
|
◆ DefaultFontSize
constexpr u32 pu::ttf::Font::DefaultFontSize = 25 |
|
staticconstexpr |
◆ InvalidFontFaceIndex
constexpr i32 pu::ttf::Font::InvalidFontFaceIndex = -1 |
|
staticconstexpr |
The documentation for this class was generated from the following file: