linebender / skribo

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

layout_run function does not work correctly on ubuntu 18.04 #18

Open jeroentervoorde opened 5 years ago

jeroentervoorde commented 5 years ago

The returned glyph_id in the glyph_infos is always zero after shaping,

Adding hb_ot_font_set_funcs(hb_font) to the layout_run function fixes it. For more details describing the same problem see this issue: https://github.com/maps4print/azul/issues/125#issuecomment-479172471

I didn't make a PR as i'm not sure adding this causes troubles on windows/macos.

adamnemecek commented 4 years ago

I'm running into this issue as well on macOS.