-
Notifications
You must be signed in to change notification settings - Fork 335
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
Increase code font size #2078
Increase code font size #2078
Conversation
📦 Docs artifacts are ready: https://github.com/elixir-lang/ex_doc/actions/runs/12999956491/artifacts/2494065578 |
Thank you but the proposed sizes are definitely too big for macOS. If balancing system fonts size across OSes is going to be complicated, we should revert back to Inconsolata. |
I don't know what settings you're working with but i'm on default and 14px looks similar to the regular text size. can you share a screenshot? |
Here is a possible solution:
And we adjust the size for either the macOS or the Windows font. |
how is that too big? the left one looks roughly the same as the rest of the text, the right one looks smaller than the rest of the text. |
@hichemfantar the |
the left screenshot is from the current pr, right? |
That's the whole point of my comment though. As I said the previous time this was brought up, those tend to consume a lot of space from functions and arguments with long names. And the callback one is smaller on purpose because they tend to be very long. Here is just one example: https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#stream/4 I will revert to Inconsolata tomorrow morning.
Yes. |
Please don't revert to a third party font, the whole reason we moved away is because it doesn't support all characters properly and it was kinda heavy in size. 1px for improved readability is a much better solution than undoing all the improvements we made. |
Do you think we can have @font-face declaration that adjusts it on Windows then?
I want to avoid rehashing discussions on the font size, it is not productive. So we either default to a single font or we figure out a way to make it work without having to adjust the sizes for every OS. |
@hichemfantar I pushed some of those changes and other fixes related to font sizes, including increasing line length so tey get more breathing room. However, I kept |
I downloaded several monospace fonts and tried them one by one. Consolas is the only one too small, so I have adjusted its font-face accordingly. |
Adjust font sizes for better readability and refactor CSS to utilize variables for consistency across the styles.
The font is smaller that before on windows and is harder to read, bringing it up to 14px makes it easier to read
I'm sure this fix brings the font size on par to what it was on macos as well
old before system font
![image](https://private-user-images.githubusercontent.com/34947993/407119469-725b13c5-0fea-44e3-8e37-bf1a1c27d2f9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3M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