Skip to content

Proof

proof

Render proof sheets comparing Roboto Mono with Automata Mono (run with uv).

Writes PNGs to the output directory: - glyphs.png: the redrawn glyphs in every style, upstream above, ours below. - small-sizes.png: code at small pixel sizes, unhinted (as on macOS) and with TrueType hinting (as on Windows and Linux), magnified without smoothing. - ligatures.png: Fira Code ligatures in every style, with calt on and off.

Text is shaped with HarfBuzz and rasterized with FreeType.

GLYPHS_TEXT = 'ij; a@ą, b y ỵ у ij tfťţ g [0] %/ rřŗ $¢ CGĢ 6 OQ 0Ø 1lI 69 .:!?¡¿ ceę' module-attribute

CODE_TEXT = 'for (int i = 0; i < j; i++) { a[i] = !ok ? fix(t, y) % 196 : 0; } return Get($arg, Q, 0xC6, "a@b.io");' module-attribute

LIGATURES_TEXT = '-> => != === <= >= |> <| || :: ... /* */ <!-- --> www && ?? ;;' module-attribute

SMALL_SIZES = (11, 12, 13, 14, 16) module-attribute

SMALL_STYLES = ('Regular', 'Bold') module-attribute

MAGNIFY = 3 module-attribute

LABEL = 14 module-attribute

PAD = 8 module-attribute

render(path, text, size, hinted=False, features=None)

Shape and rasterize one line of text as a grayscale image (black on white).

stack(rows, gap=PAD)

Stack (label, image) rows vertically with labels on the left.

pair(style, args)

glyphs_sheet(args, styles)

small_sizes_sheet(args, styles)

ligatures_sheet(args, styles)

main()