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

Font tweaks #10

Closed
3 tasks
andrzejnovak opened this issue Sep 26, 2023 · 3 comments
Closed
3 tasks

Font tweaks #10

andrzejnovak opened this issue Sep 26, 2023 · 3 comments

Comments

@andrzejnovak
Copy link
Contributor

andrzejnovak commented Sep 26, 2023

  • Fix spacing between "CMS" and "additional label" to ~1 space

image

  • Set "CMS" font size to 1.3* the font size of the "additional label"
  • Either use Helvetica or better yet, use Tex Gyre Heros which is free and we can package it so it's accessible regardless of using mac/win/linux
@anmalara
Copy link
Contributor

  1. yes, I wanted to fix this already. it's not super trivial since I couldn't find a way to get the width of the CMS text (if you know how, it would be helpful)
  2. At the moment it was set to 0.75 of the CMS font. I can bring it to 0.7 if you like. We should decide also on the size of the lumi text (0.60 at the moment). Do you also want to have this fixed and hidden for the end-user or still with the possibility to modify it?
  3. Fine for me, but not sure how to add it to the TLatex. These are the current fonts available (https://root.cern.ch/root/html534/guides/users-guide/ROOTUsersGuideChapters/Graphics.pdf#page=43)

@IzaakWN
Copy link
Contributor

IzaakWN commented Sep 28, 2023

  • yes, I wanted to fix this already. it's not super trivial since I couldn't find a way to get the width of the CMS text (if you know how, it would be helpful)

This is related to #8 (comment) where I offer a solution.

Alternatively, there are these methods: TLaTeX::GetBoundingBox, TLaTeX::GetXsize, but I never tried it...

@anmalara
Copy link
Contributor

anmalara commented Oct 8, 2023

spacing fixed in #15

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

4 participants