From df4559d18fede2ad50ad7e39f5c7b23b68a92f7a Mon Sep 17 00:00:00 2001 From: Peter Baker Date: Sat, 24 Feb 2024 11:01:04 -0500 Subject: [PATCH] Fixed bug in ygModel.ygFont.has_hints --- src/ygt/ygModel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ygt/ygModel.py b/src/ygt/ygModel.py index 58a0176..6876f36 100644 --- a/src/ygt/ygModel.py +++ b/src/ygt/ygModel.py @@ -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])