Skip to content

Commit 34af1aa

Browse files
committed
Small refactoring.
1 parent c515b36 commit 34af1aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fontbro/font.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,10 @@ def get_glyphs(self):
432432
glyfs = font["glyf"]
433433
glyphset = font.getGlyphSet()
434434
for name in glyphset.keys():
435+
glyf = glyfs[name]
435436
yield {
436437
"name": name,
437-
"components_names": glyfs[name].getComponentNames(glyfs),
438+
"components_names": glyf.getComponentNames(glyfs),
438439
}
439440

440441
def get_glyphs_count(self):

0 commit comments

Comments
 (0)