-
Notifications
You must be signed in to change notification settings - Fork 2
/
Font.h
24 lines (16 loc) · 623 Bytes
/
Font.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <cstdint> // std::uint32_t, std::int32_t
namespace ptgn {
namespace font {
/*
* Load a font into the font manager.
* @param font_point_size Point size (based on 72 DPI). This translates to pixel height.
* @param font_face_index Font face index, the first face is 0.
*/
void Load(const char* font_key, const char* font_path, std::uint32_t font_point_size, std::uint32_t font_face_index = 0);
// Unload a font from the font manager.
void Unload(const char* font_key);
// Retrieve the pixel height of a font.
std::int32_t GetHeight(const char* font_key);
} // namespace font
} // namespace ptgn