File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ---" )
You can’t perform that action at this time.
0 commit comments