measure_color
Compute a glyph's ink density by dividing its filled area by its bounding box, normalizing by zone height (x-height or cap-height) for comparable darkness values across glyphs.
Instructions
Measure the ink density (typographic color) of a single glyph.
Ink density = ratio of filled area to total bounding box. Normalizes by the appropriate zone height (x-height for lowercase, cap-height for uppercase) so values are comparable across glyphs.
Returns a value between 0.0 and 1.0 (typically 0.15-0.50 for text fonts).
Higher = darker/heavier glyph. Lower = lighter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| master_id | No | ||
| glyph_name | Yes |