cms-cat / cmsstyle

Holding repo for CMS plotting style ROOT macros
https://cmsstyle.readthedocs.io/
MIT License
8 stars 10 forks source link

Font tweaks #10

Closed andrzejnovak closed 1 year ago

andrzejnovak commented 1 year ago

image

anmalara commented 1 year ago

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 commented 1 year ago
  • 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 https://github.com/cms-cat/cms-root-style/issues/8#issuecomment-1739127236 where I offer a solution.

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

anmalara commented 1 year ago

spacing fixed in https://github.com/cms-cat/cms-root-style/pull/15