Skip to content

Commit

Permalink
Use FontTools' ttfont, not vharfbuzz, fixes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Feb 8, 2024
1 parent b00f0d6 commit f0fcb3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shaperglot/checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from ufo2ft.util import closeGlyphsOverGSUB
from vharfbuzz import Vharfbuzz
from fontTools.ttLib import TTFont
from shaperglot.reporter import Reporter


Expand All @@ -14,7 +15,7 @@ class Checker: # pylint: disable=too-few-public-methods
"""
def __init__(self, fontfile):
self.vharfbuzz = Vharfbuzz(fontfile)
self.ttfont = self.vharfbuzz.ttfont
self.ttfont = TTFont(ttfont)
self.glyphorder = self.ttfont.getGlyphOrder()
self.cmap = self.ttfont["cmap"].getBestCmap()
self.reversed_cmap = self.ttfont["cmap"].buildReversed()
Expand Down

0 comments on commit f0fcb3a

Please sign in to comment.