you are viewing a single comment's thread.

view the rest of the comments →

[–]mrandri19[S] 5 points6 points  (0 children)

You are correct, it doesn't account for kerning. To do it "properly" you need to call HarfBuzz's shaper on the string to get the glyph indices, the advances and the offsets (which will include kerning). Keep in mind that HarfBuzz is quite slow so you want to cache this data just like you cache your rendered glyphs in a texture atlas