I am working on a game remake which uses a non-standard bitmap font format, this change makes the fields of the font structure public so that it can be created manually from its components (For custom formats that have access to all the required fields and can directly set the glyph and tex data where the texture atlas is already created)
Changes
Made the fields of "Font" from fyrox-ui/src/ttf.rs public so they can be created manually like "FontGlyph"
My usage
I've attached my usage of this below where I already have the font texture atlas and just directly create the fields (Sorry about the code quality in the screenshot its basically my minimal viable product for getting fonts to render):
Description
I am working on a game remake which uses a non-standard bitmap font format, this change makes the fields of the font structure public so that it can be created manually from its components (For custom formats that have access to all the required fields and can directly set the glyph and tex data where the texture atlas is already created)
Changes
My usage
I've attached my usage of this below where I already have the font texture atlas and just directly create the fields (Sorry about the code quality in the screenshot its basically my minimal viable product for getting fonts to render):