Skip to content

Commit

Permalink
use macroman directly
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Dec 20, 2022
1 parent 96955ea commit 0e070a2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Lib/extractor/formats/type1.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ def extractFontFromType1(
doKerning=True,
customFunctions=[],
):
try:
source = T1Font(pathOrFile, encoding="ascii")
source["FontInfo"]
except UnicodeDecodeError:
source = T1Font(pathOrFile, encoding="macroman")

source = T1Font(pathOrFile, encoding="macroman")
destination.lib["public.glyphOrder"] = _extractType1GlyphOrder(source)
if doInfo:
extractType1Info(source, destination)
Expand Down

0 comments on commit 0e070a2

Please sign in to comment.