Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Mar 14, 2024
1 parent 72b40ee commit 6771634
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/babelfont/convertors/truetype.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,16 @@ def _load_masters(self):
m = Master(location={}, name="Default", id=str(uuid.uuid1()))
# Metrics
m.metrics = {
"xHeight": self.tt["OS/2"].sxHeight
if hasattr(self.tt["OS/2"], "sxHeight")
else None,
"capHeight": self.tt["OS/2"].sCapHeight
if hasattr(self.tt["OS/2"], "capHeight")
else None,
"xHeight": (
self.tt["OS/2"].sxHeight
if hasattr(self.tt["OS/2"], "sxHeight")
else None
),
"capHeight": (
self.tt["OS/2"].sCapHeight
if hasattr(self.tt["OS/2"], "capHeight")
else None
),
"ascender": self.tt["hhea"].ascender,
"descender": self.tt["hhea"].descender,
}
Expand Down

0 comments on commit 6771634

Please sign in to comment.