Font that can be used for validating baseline alignments. sajidanwar.com/misc/baseline-diagnostic-font/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

README.md

Baseline Diagnostic Font#

Overview#

Font that can be used for validating baseline alignments. Given the embedded text in the font, this should be used with very large font sizes.

Baselines and Metrics#

Baseline/Metric Coordinate BASE Value OS/2 Value hhea Value
ascent 800 sTypoAscender ascent
ideographic-over 750 idtp
hanging 650 hang
ideographic-face-over 650 icft
cap-height 550 sCapHeight
math 450 math
/central/ 350
/em-middle/ 300
x-height 250 sxHeight
/x-middle/ 150
alphabetic 50 romn
ideographic-face-under 50 icfb
/zero/ 0
ideographic-under -50 ideo
descent -200 sTypoDescender descent

The BaselineDiagnosticAlphabeticZero variant is the same as BaselineDiagnostic, except alphabetic moves to 0; x-middle moves to 125.

Glyphs#

Diagnostic glyph#

Glyph Codepoint Description
X U+0058 All baselines drawn with labels

Pair glyphs#

Each baseline pair has two variants: a layout glyph (opaque filled rectangle between the two baselines) and a labeled glyph (lines with text labels, like X).

Pair Layout Layout codepoint Labeled Labeled codepoint
x-height + alphabetic x U+0078 χ U+03C7
cap-height + alphabetic B U+0042 β U+03B2
ideographic-over + ideographic-under U+53E3 U+65E5
ideographic-face-over + ideographic-face-under U+4E2D U+7530
hanging + alphabetic U+0905 U+0906
math + alphabetic + U+002B ± U+00B1

Em-box glyphs#

Variant Glyph Codepoint
Filled U+2588
Outline U+25A1

Source and Downloads#

Both the source code and built font files can be found in the @sajidanwar.com/baseline-diagnostic-font repository on Tangled or the kbhomes/baseline-diagnostic-font repository on GitHub.

This font is built using Python with the fonttools library.

License#

This font contains Noto Sans Mono glyphs in the rendering of its baseline labels. Like that font, this font is licensed under the SIL Open Font License, Version 1.1, and is available at LICENSE.txt.