font-rs
font-rs copied to clipboard
It has been more or less often been stated that font-rs is capable of doing benchmarks, but still not production ready. Many people are interested in font-rs and you called...
The Rust code has SIMD and non-SIMD versions of this conversion (255.0 \* y) as u8 from an f32 in the range [0.0, 1.0] to a u8 in the range...
https://github.com/raphlinus/font-rs/blob/ad0b79ea9b76cc80687ad4363d4fa692fbd0ddf8/src/raster.rs#L82 `x0i` can be `-1` in this case, and casting it to `usize` will give `usize` max. The addition with `linestart` will cause an arithmetic overflow. Wrapping add should be...
Also some minor cleanups, plus fixes to compound glyph transforms. Note that point-matching is not implemented yet.
When the CMap tests are run against Roboto-Regular.ttf from fuchsia/garnet/bin/fonts/third_party fails with the following message: ~~~ ---- font::tests::test_cmap_format_4 stdout ---- thread 'font::tests::test_cmap_format_4' panicked at 'assertion failed: `(left == right)` left:...
Binary?
What should I do with the output of `cargo build --release`? I only get a libfont_rs.rlib
Parsing the [hhea table](https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6hhea.html), to get some general information about the font : * MaxAscent * MaxDescent * LineGap * AdvanceWidthMax As I understand it, this is needed to get...
This is the first time I've messed with conditional no_std, so I'm sure there are cleaner ways to get some of this stuff. Very open to suggestions - I'd like...
Stable Rust now has an [is_x86_feature_detected](https://doc.rust-lang.org/std/macro.is_x86_feature_detected.html) macro, which should be used to switch between SSE and fallback implementations based on runtime detection of the SSE capability.
Would you be interested in testing font.rs through [Unicode text rendering tests](https://github.com/unicode-org/text-rendering-tests)? I’d volunteer to do the integration into the test suite on the Unicode side, if somebody familiar with...