You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Sublime Text 4 uses points to describe font size, such as in Preferences: Settings:
{
"font_size": 10
}
This is rather counter intuitive, and worse, makes setting a precise font size rather difficult (for example, to get font size of 10px with MonoLisa font on Linux, I need to set font_size to 7.5. It also makes setting the font size across different applications, fonts, and operating systems problematic, as outlined by @tonsky in his blog post: https://tonsky.me/blog/font-size.
Preferred solution
Allow specifying the unit in the font_size option, such as
{
"font_size": "10px"
}
or
{
"font_size": "10pt"
}
in addition to the current syntax.
Alternatives
An alternative would be to add another setting, pixel_font_size, which would override the font_size option, and set the font size in pixels, rather than points, such as
{
"pixel_font_size": 10
}
Additional Information
None applicable.
The text was updated successfully, but these errors were encountered:
Problem description
Currently Sublime Text 4 uses points to describe font size, such as in
Preferences: Settings
:This is rather counter intuitive, and worse, makes setting a precise font size rather difficult (for example, to get font size of 10px with MonoLisa font on Linux, I need to set
font_size
to 7.5. It also makes setting the font size across different applications, fonts, and operating systems problematic, as outlined by @tonsky in his blog post: https://tonsky.me/blog/font-size.Preferred solution
Allow specifying the unit in the
font_size
option, such asor
in addition to the current syntax.
Alternatives
An alternative would be to add another setting,
pixel_font_size
, which would override thefont_size
option, and set the font size in pixels, rather than points, such asAdditional Information
None applicable.
The text was updated successfully, but these errors were encountered: