On Mon, Sep 15, 2003 at 05:08:52PM -0500, John Hunter wrote:
> When I increase the DPI for hardcopy (rendering to a pixmap and then
> saving as PNG) I want the fonts to scale with the rest of the lines,
> rectangles, arcs, etc....
>
> I tried experimenting with the set_size parameter of the
> FontDescription and the various pango scales, but there is not a wide
> enough range of scales to go from screen displays to, say, hardcopy
> resolutions of 600 dpi.
[...]
> Any ideas on how to scale fonts? Is this possible with pango?
I think asking on the pango mailing list ([EMAIL PROTECTED]) is
probably your best bet for this problem. I asked James about this today
and we both agreed that the problem seems to be *rendering* the fonts,
rather than scaling them.
James also pointed out that the XFT backend will be better at rendering
large fonts, since scaled bitmap fonts needed to be completely loaded
into memory before being rendered. To turn on XFT fonts in GTK+ 2.0, use
export GDK_USE_XFT=1
-- it's on by default for 2.2 onwards.
> Alternatively, is there any true type font support that can be used
> with pygtk?
Yes. Both the core font engine and XFT handle TTF fonts correctly
(though you need the freetype module loaded for the former, AFAIK).
However, what you probably want is to *render* fonts using the XFT
backend, which is the hint James provided above.
Take care,
--
Christian Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/