[HarfBuzz] Beginners question on unicode values
Patrick
std300 at gmail.com
Tue Feb 4 08:29:42 UTC 2020
Hello all,
(I am new to harfbuzz, I'd appreciate if you point me in the right direction)
I use LuaTeX, which has a harfbuzz integration, so there might be
issues that are not related to harfbuzz.
I load a font that comes with the Apple Mac (zapfino.ttf) and I use
shape_full() to get the shaping. First attempt is to shape the word
"Za", which results in codepoints 104 and 504. Then I shape "Zapfino"
which results in codepoint 1059.
Now I need to find out the unicode values for the codepoints.
To get the unicode values, I first do a hb_face_collect_unicodes to
get all unicode values in the font and then hb_font_get_nominal_glyph
to map from a unicode value to a codepoint.
For 104 and 504 I get the unicode values 90 and 97 (dec), which
correspond to 'Z' and 'a', so the first example looks fine. But I am
unable to map 1059 to anything, since it does not appear in the list I
get back from hb_face_collect_unicodes()
Is there a way to map the codepoint 1059 to a unicode value for this
specific font? Or is my line of thought wrong and I need to do
something completely different?
Thanks
Patrick
More information about the HarfBuzz
mailing list