nickel icon indicating copy to clipboard operation
nickel copied to clipboard

Change the manual font to something more readable

Open giorgiga opened this issue 2 years ago • 1 comments

In the manual at https://nickel-lang.org/user-manual/ commas and dots are not easily distinguishable (well, at least on my system); it would be great if the font was swapped for a clearer one.

Example from https://nickel-lang.org/user-manual/syntax:

commadot

(in case it matters: I'm using latest firefox on an updated tumbleweed w/ kde/wayland)

giorgiga avatar Oct 17 '23 14:10 giorgiga

Hi,

Sorry for answering only now. I think the font is defined by default by the Prism library that we use to highlight Nickel code snippets, and is - I believe - rather common for code (DejaVu Sans Mono). Would you have, by any chance, a suggestion for a font with makes the distinction easier?

yannham avatar Apr 09 '24 13:04 yannham

Because there's no answer, and I don't have the same rendering (I see comma clearly differently than dot, see below), I'm going to close for now. Feel free to re-open with suggestions.

image

yannham avatar Jun 11 '24 15:06 yannham

Sorry: I had lost track of this one.

The font that is rendered unclearly is Andale Mono, which is the third alternative (my system came with only the essential fonts and I didn't install many more).

Just removing Andale Mono from the css (font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace) causes the browser to fall back to some other font (the generic "monospace" for me) and solves the issue.

Note that, for all I know, this might be a idiosyncrasy of my browser/os (I run firefox on opensuse tumbleweed) so... just ignore the whole thing if it doesn't add up for you.

giorgiga avatar Jun 18 '24 15:06 giorgiga