From 67716346fe321164ba7ee185a8bc5808b238382a Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 14 Mar 2024 17:47:20 +0000 Subject: [PATCH] Black --- src/babelfont/convertors/truetype.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/babelfont/convertors/truetype.py b/src/babelfont/convertors/truetype.py index ff36c22..54e657f 100644 --- a/src/babelfont/convertors/truetype.py +++ b/src/babelfont/convertors/truetype.py @@ -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, }