Skip to content

Commit 70903f7

Browse files
committed
[commands] fix bit check
1 parent b3730ff commit 70903f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/fontline/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def get_font_report(fontpath):
3535
units_per_em = tt["head"].unitsPerEm
3636

3737
# Bit flag checks
38-
fsselection_bit6_mask = 1 << 6
39-
fsselection_bit6_set = (tt["OS/2"].fsSelection & fsselection_bit6_mask) != 0
38+
fsselection_bit7_mask = 1 << 7
39+
fsselection_bit7_set = (tt["OS/2"].fsSelection & fsselection_bit7_mask) != 0
4040

4141
# Calculated values
4242
os2_typo_total_height = os2_typo_ascender + -(os2_typo_descender)
@@ -124,7 +124,7 @@ def get_font_report(fontpath):
124124
report.append("win metrics: {}".format(win_btb_distance))
125125
report.append("")
126126
report.append(
127-
"[OS/2] fsSelection USE_TYPO_METRICS bit set: {}".format(fsselection_bit6_set)
127+
"[OS/2] fsSelection USE_TYPO_METRICS bit set: {}".format(fsselection_bit7_set)
128128
)
129129
report.append("")
130130
report.append("--- Ratios ---")

0 commit comments

Comments
 (0)