-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable Interface Font/Font Size #5286
Comments
Another suggestion could be to simply use the macOS system font for the UI. Iosevka looks great for the most part, but I find the double-story lowercase |
IIRC macOS does not expose the system UI font to applications directly, only through the Cocoa/UIKit widgets. It would of course be possible to hardcode a path to right file in the system directory but there are no guarantees that it won't change without a warning. And simply shipping a copy of the font file with applications is likely not allowed. |
Apple actually supplies the fonts for direct download; the key would be checking the license for distribution. |
The license page of the installer says no:
|
Ah, drat. |
So far it seems the only official way to access those fonts is with If pre-rasterized glyphs are enough I guess this is fine although it requires an entire custom code path for a single font. Ultimately it seems like a lot of effort for relatively little gain. However it looks like fetching the base metrics of the system font would be quite straightforward. Those could be used to pick a default size (at runtime) for the shipped font that is as close as possible to the configured system font size. This could then be reused to honor the system font size defaults on platforms that allow changing them. (Windows and Linux do, as do iOS and Android IIRC) |
How about Inter font? https://rsms.me/inter/ I think JetBrains uses this one by default now. |
Is it possible to simply add a setting for the UI font and size and let the user worry about supplying the actual font? |
Woop woop. It's now possible:
brew install --cask homebrew/cask-fonts/font-sf-pro
"ui_font_family": "SF Pro",
"ui_font_size": 15, Remember, in a macOS GUI application, the font used in parts other than the code-editing buffer shouldn't be monospaced. There's no need for terminal envy when already in a superior medium! |
SF Pro's internal font name seems to be simply "System Font". On a whim I tried adding |
This is done. |
@bsiegel Can confirm this works. There's a tooltip that says "Value is not accepted" but it works anyway. |
@dnjp love your settings on the screenshot. |
Describe the solution you'd like
I would like to be able to configure both the font and font size for the interface surrounding the editor window. Currently, the default font does not match the font or font size I'm using for the editor window.
The text was updated successfully, but these errors were encountered: