Re: Pango without X display/gtk_init()?

2003-12-01 Thread Sven Neumann
Hi,

"W. Borgert" <[EMAIL PROTECTED]> writes:

> I like to add a non-X11 mode (command line only) to a GUI
> program.  At the moment, a DISPLAY is needed for GDK/GTK,
> which is not useful, if running in an automated process,
> such as make, on a non-GUI-server.  The program needs Pango
> nonetheless for rendering text to export as a PNG file.  Is
> this possible?  If so, how?  Thanks in advance!

You could be using the PangoFT2 backend to render your fonts. You
don't need to call gtk_init() then.


Sven

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Pango without X display/gtk_init()?

2003-12-06 Thread W. Borgert
On Mon, Dec 01, 2003 at 01:35:29PM +0100, Sven Neumann wrote:
> You could be using the PangoFT2 backend to render your fonts. You
> don't need to call gtk_init() then.

Thanks, this seems to work!  I just need to call
g_type_init().  Now I can run dia w/o a DISPLAY.

Cheers,
-- 
W. Borgert <[EMAIL PROTECTED]>
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list