glyph-brush
glyph-brush copied to clipboard
Fast GPU cached text rendering
See https://github.com/alexheretic/glyph-brush/pull/156#issuecomment-1285870437 discussion
Support the Rendering of emoji. 1. Maintain two mapping textures at the same time, one for the normal text and one for the emoji. Add an `emoji_cache` in `GlyphBrush`, and...
It would be nice to be able to retrieve something similar to [DirectWrite's `DWRITE_LINE_METRICS`](https://learn.microsoft.com/en-us/windows/win32/api/dwrite/ns-dwrite-dwrite_line_metrics) from `glyph_brush_layout` in addition to the actual glyph positions. This would allow us to more easily...
* `X` type issues (See #162 #163) - Don't bake `Extra` in `Section::default`. - Rename `Extra` to `ColorZ` ? - Remove `X = Extra` defaulting? * Remove `legacy` module.
See https://github.com/alexheretic/glyph-brush/pull/156#issuecomment-1285870437
The `glyph_brush` API takes a `Section` to queue, but the `Section` internally uses a `Vec` to hold text. If I have a bunch of fields to write to the screen...
Just changing `X = Extra` to `usize` makes compilation fail. # Non-working variant # ```rust use glyph_brush::{ ab_glyph::FontArc, Extra, GlyphBrush, GlyphBrushBuilder, OwnedSection, OwnedText, }; let dejavu = FontArc::try_from_slice(include_bytes!("../DejaVuSans.ttf")).unwrap(); let mut...
Hi there, I'm currently working on a game where I have to draw a lot of outlined text, so I would really like this crate to be able to draw...