Space and set the font
font_metricsChange the font's spacing and settings: metrics {ascender, descender, capHeight, xHeight, lineGap}; glyphs {name: {lsb, rsb} or {adv}} (sides or widths); auto_space: true spaces the straight and round letters from n, o, H and O; kern {"A V": -70, "T o": -40} (null removes a pair); classes {"@round": ["O", "C", "G"]} for kerning many letters at once (Studio Plus); and family, style, weight, italic, note, licence, designer. Moving a letter's left side moves its drawing; its width follows. transform {weight -60 to 60, contrast -40 to 40, width 0.6 to 1.6, round 0 to 120, xheight 0.8 to 1.25, slant -20 to 20} reshapes every letter at once, as one change undo takes back: weight thickens (or, negative, thins) the strokes, in font units; contrast thickens the up-and-down strokes against the across ones; width scales widths and shapes (1.06 is 6% wider); round rounds the corners by that radius; xheight raises the lowercase (1.05 is 5% taller); slant leans the letters by degrees. Try first: heavier {"weight":12}; lighter {"weight":-10}; narrower {"width":0.94}; wider {"width":1.06}; rounder corners {"round":22}; taller x-height {"xheight":1.05}; more contrast {"contrast":10}; slant {"slant":7}. A font based on an open font keeps the Open Font License: its licence can't change.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "font_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kern | No | ||
| note | No | ||
| style | No | ||
| canvas | No | ||
| family | No | ||
| glyphs | No | ||
| italic | No | ||
| weight | No | ||
| classes | No | ||
| licence | No | ||
| metrics | No | ||
| designer | No | ||
| transform | No | reshape every letter at once (one undoable change), alone in its call | |
| auto_space | No | ||
| model_label | No | ||
| expected_revision | No |