compare_color
Compare ink density across glyphs to flag inconsistencies, provide per-glyph verdicts, and optionally mark colors for visual audit.
Instructions
Compare typographic color (ink density) across multiple glyphs.
RECIPE: For a full consistency audit, follow get_recipe("audit_consistency").
Finds glyphs that are visually too dark or too light compared to the group. Uses per-glyph expected density ratios from industry patterns — each glyph gets a verdict: pass, compensation, inconsistent, or unreliable.
Reference glyphs: n (lowercase), H (uppercase).
If master_id is omitted, analyzes ALL masters and returns per-master results. Glyph color in GlyphsApp = worst verdict across all masters.
Does not modify glyph colors by default. When mark_glyphs=True, marks:
Red (0) = inconsistent density
Orange (1) = unreliable measurement
Yellow (3) = optical compensation (expected)
Green (4) = pass
Args: glyph_names: Glyphs to compare master_id: Optional master ID (empty = all masters) mark_glyphs: Color glyphs by verdict only when explicitly requested
Examples: "Is the color consistent across uppercase?" -> compare_color(["H","I","M","N","O","B","D","E","F","K","L","P","R"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| master_id | No | ||
| glyph_names | Yes | ||
| mark_glyphs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |