yeslogic / allsorts

Font parser, shaping engine, and subsetter implemented in Rust
https://yeslogic.com/blog/allsorts-rust-font-shaping-engine/
Apache License 2.0
721 stars 21 forks source link

Return &str instead of String when reading from string index in CFF #94

Closed Victor-N-Suadicani closed 1 year ago

Victor-N-Suadicani commented 1 year ago

There's no need to allocate a String in the function, the caller can do that themselves if they want to.

wezm commented 1 year ago

Thank you! This has been applied.