On Thu, 9 Jun 2005, Hans-Christoph Steiner wrote:
On Jun 9, 2005, at 12:56 PM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote: in tk you just give the size as negative values and that'll be the font-size in pixels (absolute) so, while a font-size "12" is 12 points, "-12" is 12 pixels. here ends my knowledge of tcl/tk
I remember that discussion. What I don't really know is where to put change 12 to -12.
Negative values only apply when using the Tk style of font specification, which is a list of two or three elements where the 2nd is the size.
The fonts are specified in the Xwindows style: -*-courier-bold--normal--12-*
It would rather be like changing a 12-* to a *-12 or something. One of the entries in a X11 fontspec is a pointsize, and another is a pixelsize, so what you have to do is put the wildcard (*) in the pointsize entry and an integer in the pixelsize entry. I think that one of the two is given in tenths and so you may have to divide or multiply by 10 somewhere.
If you don't need the extra flexibility offered by X11 fontspecs, you can use Tk fontspecs instead and it'll be easier.
,-o--------o--------o--------o-. ,---. irc.freenode.net #dataflow | | The Diagram is the Program tm| | ,-o-------------o--------------o-. `-o------------o-------------o-' | | Mathieu Bouchard (Montréal QC) | | téléphone:+1.514.383.3801`---' `-o-- http://artengine.ca/matju -'