mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
## Description I rewrote the font weight display logiс in the following way: 1. We now detect for each font which weights are supported 2. Unsupported weights are lighter gray in the list, but user can still choose them, we just hint that the weight may not be supported, because with font stacks, you can have different fonts supporting different weights, we are testing the one user can see right now ## Steps for reproduction 1. try switching between different stacks and see that when hovering the font width that is light gray, its not affecting canvas, meaning our detection was correct and that weight is not supported 3. same thing for any custom font ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file