Font family IDs were duplicated across 5 files (types.ts, setup.ts, index.ts, SKILL.md, preferences.example.json) with inconsistent mappings — Comic Shanns was 4 in some places but actually 8 in Excalidraw source. This caused wrong fonts to render on canvas. Fix: create src/font-families.json as the canonical font data, import it in types.ts, and derive all other references from it. Static docs now point to the JSON file instead of duplicating the mapping. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
284 B
JSON
11 lines
284 B
JSON
{
|
|
"_comment": "Excalidraw MCP user preferences. Copy to preferences.json to activate.",
|
|
"_fontReference": "See src/font-families.json for canonical font ID → name mapping.",
|
|
"defaults": {
|
|
"fontFamily": 5,
|
|
"fontSize": 20,
|
|
"roughness": 0,
|
|
"strokeWidth": 2
|
|
}
|
|
}
|