1
0

Readd simple text format to replace bitmap font XML

This commit is contained in:
sfan5
2021-11-09 22:19:05 +01:00
parent 81bae5b717
commit 9b0bc2aaed
3 changed files with 119 additions and 129 deletions

View File

@@ -44,6 +44,10 @@ public:
//! loads a font from a texture file
bool load(io::IReadFile* file);
//! loads a font from a TSV file
// \param directory Directory in which the bitmaps can be found
bool load(io::IReadFile* file, const io::path& directory);
//! draws an text and clips it to the specified rectangle if wanted
virtual void draw(const core::stringw& text, const core::rect<s32>& position,
video::SColor color, bool hcenter=false,