Hello all,
I did now some further investigation on this topic and I thought I
might share what I found here, for the archives :)
It seems that in fact the problem is the name of the postscript font
created by Tk. Tk itself treats all font names case insensitive, so
"cOMiC SanS mS" is equivalent w
Thus spoketh Firat Ozgul
unto us on Tue, 24 Aug 2010 22:49:28 +0300:
> In Tk documentation, it reads:
>
> "(...) Tk attempts to guess what Postscript font to use. Tk's guesses
> generally only work for well-known fonts such as Times and Helvetica and
> Courier (...)"
>
> source: http://www.tcl
In Tk documentation, it reads:
"(...) Tk attempts to guess what Postscript font to use. Tk's guesses
generally only work for well-known fonts such as Times and Helvetica and
Courier (...)"
source: http://www.tcl.tk/man/tcl8.4/TkCmd/canvas.htm (see "-fontmap"
section)
So if you would like to be o
Hello,
Thus spoketh Firat Ozgul
unto us on Tue, 24 Aug 2010 16:54:30 +0300:
> Hello,
>
> It looks like that postscript() function cannot render every font with
> no obvious reason. "Renderable" fonts are rendered correctly regardless
> of whether they contain spaces or not...
I guess you are
Hello,
It looks like that postscript() function cannot render every font with no
obvious reason. "Renderable" fonts are rendered correctly regardless of
whether they contain spaces or not... However it seems that, alternatively,
we can achieve what we want through the Image, ImageDraw and ImageFon
Hello,
Thus spoketh Firat Ozgul
unto us on Tue, 24 Aug 2010 12:37:41 +0300:
> Hello,
>
> It seems to me that for the most part, you are having issues with font
> names that have spaces between the words making up the font name. For
> example: "DejaVu Sans Condensed"
>
> If there are spaces be
Hello,
I found some useful stuff at:
http://www.tcl.tk/man/tcl8.4/TkCmd/canvas.htm(Find "-fontmap" there)
The above document recommends a notation like: *
-*-Courier-Bold-R-Normal--*-120-
*I think this notation will be like this for those fonts that have spaces:
*"-*-DejaVu Serif Condensed-Bold
Hello,
It seems to me that for the most part, you are having issues with font names
that have spaces between the words making up the font name. For example:
"DejaVu Sans Condensed"
If there are spaces between words, you should define self.font as a tuple:
self.font = ("DejaVu Sans Condensed",)
Thanks Firat for the reply,
Thus spoketh Firat Ozgul
unto us on Tue, 24 Aug 2010 09:16:41 +0300:
> Hello,
>
> Unfortunately there are not enough documentation about Python-tk
> postscript manipulation. Information is scattered here and there.
>
> A sample code could be like this:
> [0] http:/
In addition to my previous e-mail, I want to add the following link in which
there are some explanations and an example code for creating postscript.
However the following is only useful if you are into Tcl/Tk:
http://flylib.com/books.php?ln=en&n=3&p=480&c=292&p1=1&c1=1&c2=478&view=2
Firat
2010/
Hello,
Unfortunately there are not enough documentation about Python-tk postscript
manipulation. Information is scattered here and there.
A sample code could be like this:
[0] http://paste-it.net/public/l5a7036/
Some useful discussions on the topic:
[0]
http://www.velocityreviews.com/forums/t326
Hello all,
I am stuck here with a strange problem creating postscript from a
Tkinter Canvas (the OS is debian linux).
I found that Canvas.postscript() fails to render some fonts correctly and
uses something like helvetica or courier (I guess) instead. From what the
canvas man page says, I thought
12 matches
Mail list logo