Missing glyphs when trying to get ligatures to work #136
Replies: 1 comment
-
Fixed with 0c3edfe |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure this is the right place to ask, especially since I don't know if this is a fontdue or rustybuzz problem (It might not even be one and I'm just being stupid), but I couldn't find anywhere else.
I'm trying to do text rendering using fontdue and rustybuzz, and I'd like to support ligatures. but the glyphs index rustybuzz gives me, while valid (<
Font::glyph_count
), show up as zero sized (metrics.width
andmetrics.height
are both zero). I'm not sure what could even be causing this problem, but unless rustybuzz is giving out some completely random glyphs, this looks to be coming from fontdue. I tried with two different font (Iosevka and FiraCode), in both cases, all normal glyphs work as intended, but all the ligatures (in my case the string "<=>") just don't show up.Looks like this might be coming from here, this only calls
generate_glyph
for glyphs that are mapped to a codepoint, which isn't the case for ligatures.Beta Was this translation helpful? Give feedback.
All reactions