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

Include Tex Gyre Heros in ROOT fonts #14064

Closed
vepadulano opened this issue Nov 16, 2023 · 2 comments
Closed

Include Tex Gyre Heros in ROOT fonts #14064

vepadulano opened this issue Nov 16, 2023 · 2 comments
Assignees

Comments

@vepadulano
Copy link
Member

Feature description

The Tex Gyre Heros family of fonts (https://www.gust.org.pl/projects/e-foundry/tex-gyre/heros) is the currently used alternative to the Helvetica fonts as suggested by the newly formed CMS analysis tools documentation website https://cms-analysis.docs.cern.ch/ .

After some investigation, our understanding is that ROOT either tries to display Helvetica (by e.g. asking for it in the preamble of a PDF image) or falls back to a FreeSans font when that's not possible (see also #14049)

We should evaluate whether we can also ship Tex Gyre Heros to allow the CMS documentation to report the same type of font being used irrespective of the plotting tool used, platform, PDF viewer.

Notably, we need to understand if the licensing is compatible with ours.

FYI @andrzejnovak @ttedeschi

Alternatives considered

Keep using the FreeSans font as alternative to Helvetica. But the current setup means that e.g. the font displayed in a TCanvas might be different from the font displayed in a PDF viewer on the same machine if that PDF viewer cannot display Helvetica.

Additional context

No response

@couet
Copy link
Member

couet commented Nov 17, 2023

The ROOT PostScript and PDF backends use the original PostScript-defined 13 font styles which form 4 type families:

Courier (Regular, Oblique, Bold, Bold Oblique)
Helvetica (Regular, Oblique, Bold, Bold Oblique)
Times (Roman, Italic, Bold, Bold Italic)
Symbol

See the "Core Font Set" section in this document. These fonts are always available and do not need to be loaded in the PS or PDF file which allows to keep the files' sizes small which is very important regarding the huge number of such files generated in HEP.

So Helvetica is there. There are no license issues for PS and PDF. Unlike the otf and ttf files used for screen rendering. That's the reason why FreeSans was chosen because it is very similar to Helvetica (on my Mac I could not see the difference)

We can replace the current FreeSan family by "Tex Gyre Heros" but that will be on screen only and will not affect the PDF and PS output. Therefore is it really worth it?

@couet
Copy link
Member

couet commented Feb 27, 2024

PR here #14841

@couet couet closed this as completed Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants