Re: How-to find printable fonts, etc



On Mon, 2004-09-13 at 16:49, Robert Roebling wrote:
>  Hi,
> 
> How do I know which fonts libgnomeprint actually
> can print? Basically, I'd like to present the
> user with a font dialog that only displays fonts
> which can be printed. Ideally, gnome-print could
> print all fonts that Pango can display on screen,
> but I'd like to be sure if that is the case.

It's close but not exact ... bitmap fonts are the exception.
they'll appear blank in the output.

 http://bugzilla.gnome.org/show_bug.cgi?id=143874

has some discussion at the end.

> What (printer-)resolution does gnome-print use?
> The standard 72pts from Postscript or does it
> query the printer/cups about the printer's dpi?  

The postscript output is all outline based, so dpi isn't
very relevant. If you use the default transformation
matrix, 12 point font should appear on the page
at a size that is 12/72 inches high (0.42 cm)

> What is a GnomeFont in contrast to a PangoFont?

My somewhat biased view is that GnomeFont is an internal
implementation detail that you don't have to worry about;
you should avoid gnome-prints font and text routines
and only use routines from gnome-print-pango.h

(Actually, PangoFont is basically an implementation detail
as well. PangoFontDescription is the application-level object.)

> If I want to avoid using libgnomeprintUI and 
> I don't want/need to use the preview canvas, 
> do I need much more than wrap gnome_print_config
> with a GUI? I'm always thinking of way how to
> reduce library dependencies since I only want
> to print.

If you don't use libgnomeprintui, your app won't be consistent
with other apps on the desktop.

libgnomeprintui is the way to use gnome-print from a GTK+ 
application. Yes, it drags in libart and gnome-canvas, but that's
a small cost for getting a consistent UI appearance, and not
having to write several thousand lines of code.

Regards,
					Owen

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]