-
Notifications
You must be signed in to change notification settings - Fork 224
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
Better web font for I (capital i) and l (small L) #933
Comments
Looks good. Does Linux support it? |
Good point, probably not. We can include multiple fonts in the font-family property as a fall-back and/or find an open source alternative to Tahoma that still makes those characters more distinct. |
It would be better if you can open a PR so that we can preview what the new font settings look like. |
Ok, here's 3 open PRs with new web fonts to preview:
Any other candidates 😆? |
The Atkinson Hyperlegible font looks great IMO |
Agreed! I'd be happy w/ this and don't mind the zero with the slash. One concern I have is that it's on the smaller side, I'd suggest we bump up the font size a bit if we use this (easy). |
Increasing the font size sounds good, I'll look into the style.css file. Also, should we/do we need a list of fallback font types if we serve the font directly? I.e. do something like |
I think that it's best practice to include a fallback font regardless. I'd suggest just falling back to generic |
Ok, done at f14a8e1. See https://pygmt-git-docs-fonts-legible-gmt.vercel.app/gallery/line/vector-heads-tails.html#sphx-glr-gallery-line-vector-heads-tails-py, compare with https://www.pygmt.org/dev/gallery/line/vector-heads-tails.html.
Font size looks better now. But maybe should tweak the font-weight down a little bit? Or is it ok? |
Thanks, @weiji14. I think having a slightly heavier font is fine and might even be better for small screens. Plus, then we don't have to serve the "light" font or whatever. I think this looks great, adds a bit more style to our site, and hopefully makes it more readable too. But I think we should check with other @GenericMappingTools/python folks too! |
Looks good to me. |
Description of the problem
See this page as an example: https://pygmt-6lvxfpcmx.vercel.app/gallery/line/vector-heads-tails.html
The two "I" in the two red boxes are different. The first one is capital
i
, and the second one is smallL
. However, they look the same in the current font (I'm using Microsoft Edge on macOS. Not sure what they look like on other web browsers and platforms).Should we switch to a better web font? Does the current theme "sphinx_rtd_theme" support custom web fonts?
The text was updated successfully, but these errors were encountered: