FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.69k stars 348 forks source link

Expose font fields publicly for manual creation #548

Closed jacobtread closed 11 months ago

jacobtread commented 11 months ago

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): image

image