RE: installing a true type font in root

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 3 Feb 2010 09:57:18 +0100


Hi Alfio,

> if I have read correctly the documentation,
> ROOT support only 14 TTF ?
> Can I add a new one, like cmr10.ttf ?

Yes there is "only" 14 fonts right now. The method SetTextFont has the font number as parameter. Having more fonts will require a SetTextFont method working with the font name (the name of the ttf file), this request is in our to-do list. There is a another issue behind this: with the 14 fonts we have now we guarantee that they will look the same on the screen, PS files, PDF files, etc ... If you add your own font it will be fine on screen but the correspondence will not be guarantee on the output ... In some cases it is acceptable.

Cheers,

Olivier Received on Wed Feb 03 2010 - 09:57:23 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 03 2010 - 11:50:02 CET