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

Unicode ∀, ∃ etc. missing in with Roboto Mono in the PDF #803

Closed
adamryczkowski opened this issue Aug 16, 2018 · 8 comments · Fixed by #1066
Closed

Unicode ∀, ∃ etc. missing in with Roboto Mono in the PDF #803

adamryczkowski opened this issue Aug 16, 2018 · 8 comments · Fixed by #1066
Labels
Format: LaTeX Related to the LaTeX / PDF output Type: Enhancement

Comments

@adamryczkowski
Copy link

I suggest changing the monospace font used by the PDF documentation, so the special Unicode strings displayed in e.g. Manual -> Strings -> Unicode and UTF-8.

@mortenpi
Copy link
Member

Good catch.. Roboto really doesn't have very good Unicode coverage.. related to #618. Would welcome suggestions for what to replace it with though (that would also be freely available cross-platform).

@adamryczkowski
Copy link
Author

How about the Fira Code? It does support ∀ and ∃, and a bunch of other purely mathematical symbols and it is created specifically for a nice output of the source code. It also comes with interesting ligatures (e.g. converting -> into →) that I understand you might not like in a language manual, but perhaps there is a way to suppress them? Don't bother with Fira Mono, on which Fira Code is based, though. It does not include mathematical symbols.

Another option is Everson Mono. It contains virtually every Unicode character.

To make a more informed decision, you might want to take a look at the list of all the fonts on the fileformat.info server, that support a given character (e.g. ∀: http://www.fileformat.info/info/unicode/char/2200/fontsupport.htm), and choose those fonts, that have mono in its name.

@mortenpi
Copy link
Member

I don't think Fira Code would be a good choice. While the ligatures are pretty neat, I quite strongly feel that they would confuse the average user who is not familiar with the ligature monospaced fonts. And I don't think there's a way to suppress that feature of the font.

Everson Mono is proprietary unfortunately. Source Code Pro showed up on the fileformat.info page though.

@simonbyrne
Copy link
Contributor

I'm not sure if it's a good way to check, but I tried pasting the characters ∀✓⊻⊗ into the sample text box on all the Google monospace fonts:

Support all except the :

Support all except

@mortenpi
Copy link
Member

If the result is not too jarring, one option might be to layer several monospace fonts to get better coverage of the different symbols?

@simonbyrne
Copy link
Contributor

Actually, the ✓ doesn't need to be monospace, so we could also pick one without that.

@mortenpi
Copy link
Member

mortenpi commented Jul 11, 2019

A small clarifying question here: with the current font setup, are the Unicode characters actually not being displayed for you? @adamryczkowski you linked to Strings / Unicode and UTF-8 page as an example in the OP. If yes, what browser and OS is that on?

Scratch that -- I just realized that this issue was about the PDF docs, not the HTML front end.

@mortenpi mortenpi changed the title ∀, ∃ and other special characters not available in the Roboto Mono font used in the pdf documention Unicode ∀, ∃ etc. missing in with Roboto Mono in the PDF Jul 11, 2019
@mortenpi mortenpi added the Format: LaTeX Related to the LaTeX / PDF output label Jul 11, 2019
@mortenpi
Copy link
Member

So, my current approach is to switch to the DejaVu fonts (#1066) -- the headings don't look as pretty as they could necessarily, but I would say that not having missing characters is more important.

If someone wants to look into changing the build to XeTeX though, that might allow us to have more control over the fonts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Format: LaTeX Related to the LaTeX / PDF output Type: Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants