So a bunch of us are working on workshops and documentation and we are of course butting our heads against the font issue again.
Does anyone have a good idea to fix this? I remember some talk about converting the fonts to pixel sizes rather than point sizes. That sounds like exactly what we should do. I've poked around a bit, but my Tcl skills are not so sharp.
.hc
________________________________________________________________________ ____
"The arc of history bends towards justice." Dr. Martin Luther King, Jr.
Hans-Christoph Steiner wrote:
So a bunch of us are working on workshops and documentation and we are of course butting our heads against the font issue again.
Does anyone have a good idea to fix this? I remember some talk about converting the fonts to pixel sizes rather than point sizes. That sounds like exactly what we should do. I've poked around a bit, but my Tcl skills are not so sharp.
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
mfg.a.d IOhannes
On Jun 9, 2005, at 12:56 PM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
So a bunch of us are working on workshops and documentation and we are of course butting our heads against the font issue again. Does anyone have a good idea to fix this? I remember some talk about converting the fonts to pixel sizes rather than point sizes. That sounds like exactly what we should do. I've poked around a bit, but my Tcl skills are not so sharp.
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. The fonts are specified in the Xwindows style:
-*-courier-bold--normal--12-*
Do we have to change to a different format for specifying fonts?
.hc
________________________________________________________________________ ___
"Information wants to be free." -Stewart Brand
the X11 style font should be replacable with:
{courier bold -12}
after the -font option.
I've not tried it myself, HC please sed it and lets see what happens! :)
B>
Hans-Christoph Steiner wrote:
On Jun 9, 2005, at 12:56 PM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
So a bunch of us are working on workshops and documentation and we are of course butting our heads against the font issue again. Does anyone have a good idea to fix this? I remember some talk about converting the fonts to pixel sizes rather than point sizes. That sounds like exactly what we should do. I've poked around a bit, but my Tcl skills are not so sharp.
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. The fonts are specified in the Xwindows style:
-*-courier-bold--normal--12-*
Do we have to change to a different format for specifying fonts?
.hc
"Information wants to be free." -Stewart Brand
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Woops that is:
{courier -12 bold}
My tcl book says nothing I can find about negative font sizes, I beleive you!
B<>
B. Bogart wrote:
the X11 style font should be replacable with:
{courier bold -12}
after the -font option.
I've not tried it myself, HC please sed it and lets see what happens! :)
B>
Hans-Christoph Steiner wrote:
On Jun 9, 2005, at 12:56 PM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
So a bunch of us are working on workshops and documentation and we are of course butting our heads against the font issue again. Does anyone have a good idea to fix this? I remember some talk about converting the fonts to pixel sizes rather than point sizes. That sounds like exactly what we should do. I've poked around a bit, but my Tcl skills are not so sharp.
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. The fonts are specified in the Xwindows style:
-*-courier-bold--normal--12-*
Do we have to change to a different format for specifying fonts?
.hc
"Information wants to be free." -Stewart Brand
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
The negative font sizes seem to work for me. But it looks like somethings will have to be changed in Pd in order to support them properly.
I am going to wait and see where Miller is going with his font reorg before doing any more with this.
.hc
On Jun 9, 2005, at 2:59 PM, B. Bogart wrote:
Woops that is:
{courier -12 bold}
My tcl book says nothing I can find about negative font sizes, I beleive you!
B<>
B. Bogart wrote:
the X11 style font should be replacable with:
{courier bold -12}
after the -font option.
I've not tried it myself, HC please sed it and lets see what happens! :)
B>
Hans-Christoph Steiner wrote:
On Jun 9, 2005, at 12:56 PM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
So a bunch of us are working on workshops and documentation and we are of course butting our heads against the font issue again. Does anyone have a good idea to fix this? I remember some talk about converting the fonts to pixel sizes rather than point sizes. That sounds like exactly what we should do. I've poked around a bit, but my Tcl skills are not so sharp.
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. The fonts are specified in the Xwindows style:
-*-courier-bold--normal--12-*
Do we have to change to a different format for specifying fonts?
.hc
"Information wants to be free." -Stewart Brand
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
________________________________________________________________________ ____
"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity."
-John Gilmore
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 -'