![]() # Objective Been looking for simplifications in the text systems as part of the text input changes. This enum isn't very helpful I think. We can remove it and the associated parameters and instead just negate the glyph's y-offsets in `extract_text2d_sprite`. ## Solution Remove the `YAxisOrientation` enum and parameters. Queue text sprites relative to the top-left in `extract_text2d_sprite` and negate the glyph's y-offset. ## Testing The `text2d` example can be used for testing: ``` cargo run --example text2d ``` |
||
---|---|---|
.. | ||
bounds.rs | ||
error.rs | ||
FiraMono-subset.ttf | ||
font_atlas_set.rs | ||
font_atlas.rs | ||
font_loader.rs | ||
font.rs | ||
glyph.rs | ||
lib.rs | ||
pipeline.rs | ||
text2d.rs | ||
text_access.rs | ||
text.rs |