mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A copy text that sets its own family and weight keeps the variant id its family names for that weight. When the main later shows the same weight, the weight is equal on both sides and sync does not place it, so the family's variant ids were not given either: the copy's Roboto run took the main's "bold", a variant of another family. The family's side now gives its variants whenever the family is placed and the weight is not. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 20.095 | 0.57 | | edit-through-a-chain-of-dependents | 68.931 | 39.445 | 0.57 | | library-update-into-copies | 83.083 | 45.617 | 0.55 | | main-edit-among-many-shapes | 4.837 | 2.227 | 0.46 | | main-edit-into-10-copies | 1.79 | 0.961 | 0.54 | | main-edit-into-100-copies | 15.415 | 9.374 | 0.61 | | main-edit-into-1000-copies | 153.086 | 94.792 | 0.62 | | variant-switch-into-copies | 32.052 | 20.436 | 0.64 | AI-assisted-by: claude-opus-5-5