diff options
Diffstat (limited to 'src/font.hpp')
| -rw-r--r-- | src/font.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/font.hpp b/src/font.hpp index 5fd0f61..73ffd1d 100644 --- a/src/font.hpp +++ b/src/font.hpp @@ -24,12 +24,12 @@ struct FontGlyphChar { double advance; glm::vec2 sprite_region_min; glm::vec2 sprite_region_max; - glm::dvec4 baseline_bounding_box; + glm::dvec4 plane_bounds; uint32_t unicode; - bool is_whitespace; // TODO + bool is_whitespace; }; struct FontRenderSettings { - float char_scale; // TODO + float char_scale; float line_height_scale; float char_spacing_scale; glm::ivec2 surface_area_size; // TODO @@ -97,7 +97,7 @@ void FontType_Tick(double delta); void FontType_Serialize(std::ofstream &stream, FontType *ft); void FontType_Deserialize(std::ifstream &stream); FontType* FontType_GetFonts(FontTypeIndex &count); -FontTypeIndex FontType_RegisterFont(pk_cstr title, AssetHandle fontTextureHandle, AssetHandle glyphsHandle, FontTypeSpacing *spacing); +FontTypeIndex FontType_RegisterFont(pk_cstr title, AssetHandle fontTextureHandle, AssetHandle glyphsHandle, FontTypeMSDFSettings *msdf_settings, FontTypeSpacing *spacing); void FontType_Unload(FontTypeIndex idx); FontRender FontType_AddStringRender(FontTypeIndex idx_ft, pk_str str, FontRenderSettings *settings); void FontType_RemoveStringRender(FontRender fr); |
