rmx_scale
Scale glyphs by percentage width or height while preserving stroke weight via RMX Scaler. Adjust weight, spacing, and vertical shift for precise type modifications.
Instructions
Scale a glyph by percentage in width and/or height.
USE THIS for percentage-based scaling requests like "make 30% wider".
RECIPE: For a multi-glyph scaling task, call get_recipe("scale_proportions") first and follow it step by step.
Uses RMX Scaler with stroke-weight compensation via master interpolation. Native affine fallback is opt-in because it cannot preserve stem weight. Response includes a "method" field: "rmx" = RMX Scaler was used, "native_transform" = affine transform fallback.
Args: glyph_name: Name of the glyph to scale width: Width scale as percentage. 100 = no change, 130 = 30% wider, 70 = 30% narrower height: Height scale as percentage. 100 = no change weight: Stroke weight delta (RMX only, ignored in native fallback) adjust_space: Sidebearing adjustment delta vertical_shift: Vertical position offset master_id: Optional active master ID. RMX still processes all masters. allow_fallback: Permit native affine scaling if RMX fails. Default False.
RMX parameters accept either one value for every master or a list in
font master order for independent per-master control.Examples: "Make R 30% wider" → rmx_scale("R", width=130) "Make R 20% narrower" → rmx_scale("R", width=80) "Scale R to 90% height, keep width" → rmx_scale("R", height=90)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"glyph_name": "<glyph_name>"
},
"name": "rmx_scale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| weight | No | ||
| master_id | No | ||
| glyph_name | Yes | ||
| adjust_space | No | ||
| allow_fallback | No | ||
| vertical_shift | No |