monaspace
monaspace copied to clipboard
Resolve several major issues: Vertical Metrics, Monospace Recognition
This PR only tweaks all vertical metrics
and font info
on each .glyphs
file
1. Avoid write lastChange and displayString to version control
2. Check Use Typo Metrics
to get more consistent vertical metrics
- https://learn.microsoft.com/en-us/typography/opentype/spec/os2#fsselection
- https://googlefonts.github.io/gf-guide/metrics.html#5-use_typo_metrics-must-be-enabled
3. Resolve #21 #37 #169
- #21 #37 "Hanging Font": Miss configure typo
and hhea
value. Adjust this value will "centering" glyphs across the vertical bounding box.
- #169 Probably same as above, tweaking typo
and hhea
does resolve the line-height
or leading
default to 1.2
or 120%
from the upm value.
Note that "Gcommaaccent" may be truncated in environments that have overflow: hidden
.
Please see these documentation: - https://googlefonts.github.io/gf-guide/metrics.html#6-winascent-and-windescent-values-must-be-the-same-as-the-familys-tallestdeepest-ymin-and-ymax-bounding-box-values - https://googlefonts.github.io/gf-guide/metrics.html#11-the-sum-of-the-fonts-vertical-metric-values-absolute-should-be-20-30-greater-than-the-fonts-upm
4. Resolve #111 not recognized as monospace font
Because isFixedPitch
is not set, the record in the POST Table isFixedPitch
has zero value.
Please refer to these:
- https://learn.microsoft.com/en-us/typography/opentype/spec/post#header
- https://googlefonts.github.io/gf-guide/requirements.html#monospace-fonts
These images below illustrate Aring
on the overflow: hidden
environment
Before: Top of Aring seems clipping because miss configuration typo/hhea
After: Resolve clipping and vertically balance basic latin