Skip to content

Commit

Permalink
Fixed bug in ygModel.ygFont.has_hints
Browse files Browse the repository at this point in the history
  • Loading branch information
psb1558 committed Feb 24, 2024
1 parent 517bee1 commit df4559d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ygt/ygModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def has_hints(self, gname: str) -> bool:
x_len = 0
if "y" in glyph_program and "points" in glyph_program["y"]:
y_len = len(glyph_program["y"]["points"])
if y_len == 0 and "x" in glyph_program and "points" in glyph_program["y"]:
if y_len == 0 and "x" in glyph_program and "points" in glyph_program["x"]:
x_len = len(glyph_program["x"]["points"])
has_code = (y_len > 0 or x_len > 0)
return any([has_code, "names" in glyph_program, "props" in glyph_program])
Expand Down

0 comments on commit df4559d

Please sign in to comment.