mooman219 / fontdue

The fastest font renderer in the world, written in pure rust.
Apache License 2.0
1.44k stars 71 forks source link

Don't use to_string for debug output. #62

Closed mensi closed 3 years ago

mensi commented 3 years ago

to_string is only available when using ttf-parser with the "std" feature. Without it you currently can't compile.

This change implements the UTF16BE conversion on the raw data and fixes #57.

mooman219 commented 3 years ago

Any reason we can't use core::str::from_utf8 if the encoding id is 0??

mooman219 commented 3 years ago

Added a utf16 decoder in aadbbf9a791658fba67a687f2a315fe2c37f3cd7