check_punctuation
Check punctuation consistency in fonts: verifies width matches between mirrored and related pairs, and validates width ratios. Identifies mismatches, optionally color-codes glyphs for quick review.
Instructions
Check punctuation consistency: mirrored pairs, width matches, and ratio checks.
Based on industry patterns across professional fonts. Checks:
Width matches (should be identical/similar):
Mirrored pairs: parenleft/parenright, bracketleft/bracketright, braceleft/braceright, guillemotleft/guillemotright (high severity — must match)
Related pairs: period/comma, colon/semicolon, quotedblleft/quotedblright (medium)
Width ratios (expected relationships):
endash wider than hyphen (traditionally 2x)
emdash wider than endash (traditionally 2x)
quoteright similar width to comma
exclam narrower than question
Skips any pairs where glyphs are missing. If master_id is omitted, analyzes ALL masters.
Does not modify glyph colors by default. When mark_glyphs=True, marks
mismatches red, width warnings yellow, and passing glyphs green.
Args: 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 | ||
| mark_glyphs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |