What about
http://root.cern.ch/root/htmldoc/TColor.html
It seems to me one can use it to define color either way you described.
Windows maps X11 fonts to Windows fonts as follows:
/______________________________________________________________________________
void TGWin32::SetTextFont(Font_t fontnumber)
{
/*-*-*-*-*-*-*-*-*-*-*-*-*Set current text font number*-*-*-*-*-*-*-*-*-*-*-*
/*-* ===========================
fTextFont = fontnumber;
/*-* List of the currently supported fonts (screen and PostScript)
/*-* =============================================================
/*-* Font ID X11 Win32 TTF lfItalic lfWeight x 10
/*-* 1 : times-medium-i-normal "Times New Roman" 1 4
/*-* 2 : times-bold-r-normal "Times New Roman" 0 7
/*-* 3 : times-bold-i-normal "Times New Roman" 1 7
/*-* 4 : helvetica-medium-r-normal "Arial" 0 4
/*-* 5 : helvetica-medium-o-normal "Arial" 1 4
/*-* 6 : helvetica-bold-r-normal "Arial" 0 7
/*-* 7 : helvetica-bold-o-normal "Arial" 1 7
/*-* 8 : courier-medium-r-normal "Courier New" 0 4
/*-* 9 : courier-medium-o-normal "Courier New" 1 4
/*-* 10 : courier-bold-r-normal "Courier New" 0 7
/*-* 11 : courier-bold-o-normal "Courier New" 1 7
/*-* 12 : symbol-medium-r-normal "Symbol" 0 6
/*-* 13 : times-medium-r-normal "Times New Roman" 0 4
/*-* 14 : "Wingdings" 0 4
Valeri
----- Original Message -----
From: "Christian Holm Christensen" <cholm@hehi03.nbi.dk>
To: <Rene.Brun@cern.ch>
Cc: <zog@mpe.mpg.de>; <roottalk@pcroot.cern.ch>
Sent: Wednesday, May 09, 2001 7:04 AM
Subject: Re: [ROOT] Different color palettes within one canvas
> Hi Rene et al,
>
> On Tue, 08 May 2001 17:01:27 +0000
> Rene Brun <Rene.Brun@cern.ch> wrote
> concerning ": Re: [ROOT] Different color palettes within one canvas":
> > Both options are trivial to implement in the case of contour plots.
> > If enough interest, I will implement them. If somebody has a better idea,
> > let me know.
>
> One thing I'm really missing is to be able to specify colors as either
> RGB (red-green-blue, like "0xFFFFFF" for white) or CMYK
> (cyan-yellow-magenta-black) rather than the IMHO, akward 0-50 colour
> IDs. I know this has little to do with colour palettes, but I thought
> while we were at the topic ...
>
> In a similar vain, it'd be nice if you could specify fonts as
>
> -<foundry>-<family>-<weigth>-<slant>-<set width>-<add style>-<pixel size>-<point size>-<resolution x>-<resolution y>-<spacing>-<average width>-<character set>
>
> for example
>
> -misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-iso8859-8
>
> I don't know how fonts are specified on Windoze or MacOS, but I guess
> one could make some sort of wrapper-thing to allow uniform font
> specifications over all platforms.
>
> If any of this is possible, I'm sorry, and I must have overlooked it.
>
> Yours,
>
> Christian -----------------------------------------------------------
> Holm Christensen Phone: (+45) 35 35 96 91
> Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305
> DK-2200 Copenhagen N Web: www.nbi.dk/~cholm
> Denmark Email: cholm@nbi.dk
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:44 MET