question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better web font for I (capital i) and l (small L)

See original GitHub issue

Description of the problem

See this page as an example: https://pygmt-6lvxfpcmx.vercel.app/gallery/line/vector-heads-tails.html

image

The two “I” in the two red boxes are different. The first one is capital i, and the second one is small L. 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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
maxrjonescommented, Feb 19, 2021

I agree with you. I think it would just involve changing a couple lines in doc/build/_static/style.css. For example, this is the output for the vector example with this css style (which is currently set to open sans):

body {
    font-family: "Tahoma", sans-serif;
}

h1, h2, h3, h4 {
    font-weight: 300;
    font-family: "Tahoma",sans-serif;
}
image

I like Tahoma because it is sans-serif but still has differences between those two characters.

0reactions
seismancommented, Feb 21, 2021

Looks good to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a sans-serif font that appears different for I (capital i ...
Most sans-serif fonts have I and l glyphs that look different. Usually, the lowercase l (surprisingly?) is taller than the uppercase I.
Read more >
Sans-serif font that distinguishes among "1," "I," and "l"?
Optima is one of the better Sans Serif fonts. Optima I l 1.png. Linux Biolinium also makes a good job of distinguishing them....
Read more >
Are there any well-designed sans-serif fonts with good ... - Quora
Are there any well-designed sans-serif fonts with good contrast between capital "I" and lowercase "L"?
Read more >
The font for capital i and small l must be different - RemNote
It will be great if you can change the font so that it is easy to differentiate between capital i and small l...
Read more >
Differentiate Between O& 0,I,l (Capital i and small L)
You can then go and change the font or font size according to your will. You will then easily be able to tell...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found