Skip to content

Commit

Permalink
Switch to font.glyph_to_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-arista committed Nov 17, 2023
1 parent cb9f192 commit b167797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ positions = buf.glyph_positions

for info, pos in zip(infos, positions):
gid = info.codepoint
glyph_name = font.get_glyph_name(gid)
glyph_name = font.glyph_to_string(gid)
cluster = info.cluster
x_advance = pos.x_advance
x_offset = pos.x_offset
Expand Down

0 comments on commit b167797

Please sign in to comment.