Skip to content
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

poor-man's bold in monospace #121

Closed
pkra opened this issue May 8, 2014 · 4 comments
Closed

poor-man's bold in monospace #121

pkra opened this issue May 8, 2014 · 4 comments

Comments

@pkra
Copy link

pkra commented May 8, 2014

The highlighting class specifies "Incosolata","Consolata","Monaco",monospace as font-family.

However, Monaco does not have a bold variant, so poor-man's bold is used which makes the spacing not mono-spaced.

See also mathjax/MathJax-docs#32 (comment)

@snide
Copy link
Collaborator

snide commented May 13, 2014

Do you have a code font you'd suggest to replace monaco? I really don't know what is most common on people's computers these days.

@pkra
Copy link
Author

pkra commented May 13, 2014

I'm not a font expert, I'm afraid. But http://css-tricks.com/snippets/css/font-stacks/ and http://www.smashingmagazine.com/2009/09/22/complete-guide-to-css-font-stacks/ provide some suggestions.

Since the problem was reported on OSX, maybe Andale Mono might fit? (I'm a bit confused as Wikipedia says Andale Mono does provide a bold typeface but the OSX-font-list only mentions a regular typeface). Or maybe loading Inconsolata as a web font? There's always Courier, I suppose.

@snide snide closed this as completed in c5d2bf5 May 28, 2014
@pkra
Copy link
Author

pkra commented May 29, 2014

Awesome! Thanks, @snide!

@ihnorton
Copy link

FWIW, on macOS 10.12 (tested both Chrome 63 and Firefox 57), the comma in the Andale font looks unfortunately like a slightly-stout period:

image

(from: https://xtensor.readthedocs.io/en/latest/numpy.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants