openpencil/tests/fixtures
Danila Poyarkov a2fc235131
fix(text): render variable font styles at their named instances (#773)
* fix(text): render variable font styles at their named instances

Installed variable fonts such as SF Pro list every named instance, but
font-kit loads each one at the default weight, so the desktop loader
rejected Medium and Bold and the canvas fell back to a substitute. Even
when a variable face was loaded, CanvasKit drew it at its default axes:
Medium rendered as Regular and Bold as a synthetic bold.

The desktop loader now falls back to a variable face whose wght axis
covers the requested weight. The renderer applies the coordinates of the
named instance matching the style, or the clamped weight when none
matches, beneath any explicit font variations on the text.

* fix(text): validate variable font tables and leave loading to the host

Check name-table records and string ranges, the fvar header size, and
axis and instance record sizes, so a malformed font falls back to the
style weight instead of throwing while text is shaped.

Drop the desktop loader's variable-face fallback; system font discovery
moves to fontique, which lists variable faces with their weight axes.
2026-09-26 11:25:01 +04:00
..
clipboard fix(clipboard): preserve typed selection data across copy and paste 2026-09-11 02:59:31 +03:00
figma-oracles refactor(tools): organize internal CLI workflows (#600) 2026-08-29 14:42:44 +03:00
fonts fix(text): render variable font styles at their named instances (#773) 2026-09-26 11:25:01 +04:00
navigation/gestures perf(canvas): rebuild navigation rendering (#591) 2026-08-31 13:39:40 +03:00
vectorize feat(vector): add bitmap vectorization engine 2026-07-27 15:33:15 +03:00
circle-text.fig feat(fig): support text on path 2026-08-17 12:00:01 +03:00
gold-preview.fig Fix DSD propagation through intermediate DSD-targeted clones 2026-03-04 22:47:32 +03:00
material3.fig Add .fig test fixtures (LFS) and fix O(n²) import bottleneck 2026-03-01 09:55:07 +03:00
nuxtui.fig Add .fig test fixtures (LFS) and fix O(n²) import bottleneck 2026-03-01 09:55:07 +03:00
pen-layout-defaults.pen fix(pen): honor layout and sizing defaults (#652) 2026-09-10 17:02:56 +03:00
pen-variables.pen fix(pen): resolve ordinary variable references (#622) 2026-09-06 23:50:03 +03:00
pencil_button.pen Add .pen document import 2026-03-28 13:57:32 +03:00
pencil_simple.pen Add .pen document import 2026-03-28 13:57:32 +03:00