linebender / skribo

A Rust library for low-level text layout.
Apache License 2.0
326 stars 36 forks source link

Set a Devanagari font on Linux, too. #15

Closed jneem closed 5 years ago

jneem commented 5 years ago

This makes examples/render.rs compile on linux, by choosing a default font. I don't know that there's a good default choice, so I just picked one arbitrarily. I'd be happy to change it.

There seems to be a font-kit bug that prevents correct rendering on my system, even with this patch: only the "H" and "हि" render correctly. Updating font-kit to the latest github version fixes this.

pcwalton commented 5 years ago

@raphlinus Ping?