Update Font System
- Add support for splitting glyphs over multiple textures - Fix some casts in wrong places (like casting a float to float?) - Add a break if stb truetype fails - Fix a typo in FontRenderer Shaddow part (used .x twice) - Use L' ' for the wstring chars - TODO: Fix the space of tabs / space chars (currently hardcoded) - WARNING - Spaces are broken (idk why)
This commit is contained in:
@ -95,6 +95,12 @@ class PD_LITHIUM_API Font {
|
||||
void CmdTextEx(std::vector<Command::Ref>& cmds, const fvec2& pos, u32 color,
|
||||
float scale, const std::string& text, LiTextFlags flags = 0,
|
||||
const fvec2& box = 0);
|
||||
/**
|
||||
* Utility function to create a font atlas
|
||||
* During TTF loading (Internal and should not be called)
|
||||
*/
|
||||
void pMakeAtlas(bool final, std::vector<u8>& font_tex, int texszs,
|
||||
PD::Li::Texture::Ref tex);
|
||||
|
||||
/** Data Section */
|
||||
int PixelHeight;
|
||||
|
Reference in New Issue
Block a user