mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-30 10:16:46 +01:00
Figma sets a variable font's optical size to the text size (within the axis), also for a named style; FigCraft keeps the named instance's (SF Pro's is 28, its display cut), so imported SF Pro text at text sizes came out about 14% narrower than in Figma. The .fig, paste and REST imports now carry the size as the text's opsz value, as the .sketch import already did (shared pass optical_size_follows_text_size). Rule from the glyph advances Figma saves in derivedTextData, in a real-world file and in a synthetic one saved from Figma's web app; Figma's Inter has no optical size axis and keeps its advances at every size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012eBDgsvRwsSRpWeWrzabVY