From 344acc9974a13c2d48b5e01e789a65adcb84cc4e Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 12 Jul 2021 11:04:16 +0100 Subject: [PATCH] Ensure fsSelection bit 7 is set --- Lib/gftools/fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/gftools/fix.py b/Lib/gftools/fix.py index df203d47b..c1c0b7829 100644 --- a/Lib/gftools/fix.py +++ b/Lib/gftools/fix.py @@ -218,7 +218,7 @@ def fix_fs_selection(ttFont): old_selection = fs_selection = ttFont["OS/2"].fsSelection # turn off all bits except for bit 7 (USE_TYPO_METRICS) - fs_selection &= 1 << 7 + fs_selection = 1 << 7 if "Italic" in tokens: fs_selection |= 1 << 0