Files
zed/crates
Junkui Zhang 9b148f3dcc Limit the value can be set for font weight (#18594)
Closes #18531



This PR limits the range of values that can be set for `FontWeight`.
Since any value less than 1.0 or greater than 999.9 causes Zed to crash
on Windows, I’ve restricted `FontWeight` to this range.

I could apply this constraint only on Windows, but considering the
documentation at https://zed.dev/docs/configuring-zed#buffer-font-weight
indicates that `FontWeight` should be between 100 and 900, I thought it
might be a good idea to apply this restriction in the settings.


Release Notes:

- Changed `ui_font_weight` and `buffer_font_weight` settings to require
values to be between `100` and `950` (inclusive).

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-01 13:32:31 -04:00
..
2024-09-19 07:20:27 -04:00
2024-09-23 15:28:04 -06:00
2024-09-13 13:17:49 -04:00
2024-04-30 23:31:59 -06:00
2024-08-13 23:06:07 -07:00
2024-09-23 15:28:04 -06:00
2024-03-11 10:45:57 +01:00
2024-09-23 15:28:04 -06:00
2024-07-15 17:04:15 -06:00
2024-09-23 15:28:04 -06:00
2024-09-27 13:30:25 -04:00
2024-09-24 16:23:08 -06:00
2024-09-19 07:20:27 -04:00
2024-09-17 11:19:07 -04:00
2024-09-27 10:06:19 -06:00
2024-09-16 08:29:46 -04:00