compare_proportions
Audit glyph width proportions for consistency by flagging mismatches in mirrored forms, width ordering, and industry ranges.
Instructions
Compare width proportions across glyphs within a font.
RECIPE: For a full consistency audit, follow get_recipe("audit_consistency").
Checks three things:
Related-form groups: b≈d≈p≈q (mirrored), h≈n≈u (arch), O≈Q, etc.
Width ordering: m>n>r, W>H>I — flags violations
Industry ranges from 18 professional fonts — flags outliers
References: n for lowercase, H for uppercase/figures.
If no glyph_names provided, checks all LC + UC + figures. If master_id is omitted, analyzes ALL masters.
Does not modify glyph colors by default. When mark_glyphs=True, marks
inconsistencies red, range warnings yellow, and passing glyphs green.
Args: glyph_names: Optional list of glyphs to check master_id: Optional master ID (empty = all masters) mark_glyphs: Color glyphs by verdict only when explicitly requested
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| master_id | No | ||
| glyph_names | No | ||
| mark_glyphs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |