Re: Pango and text handling in GTK+.

On Fri, 26 Jul 2002, Zenith Lau wrote:

> 	I'd like to ask that, does pango is solely a underlying layer
> beneath GTK+? Only GTK function will call pango stuff?? Or we can
> use pango in our code? In what case I should use pango directly?

You can call pango functions directly if you want to, although most
programmers will probably leave the pango calls to GTK.  See the HTML
manual that is installed when you install pango for details of the
pango functions.

> 	In gtk2, if don't specify the fonts stuff, and craete a text
> label, which is the default font for this? where can I set it? The
> config file for Pango or the one of xft??

The default font, AFAIK, comes from the internals of GTK in the first
instance, but you can reset as a user in ~/.gtkrc-2.0, e.g.

  gtk-font-name = "Sans 12"

As a programmer, you can reset it for widgets using
gtk_widget_modify_font(), and probably globally too.

As for your other questions, it's my understanding that pango will
mostly do what you need automagically (based on the LANG setting?),
but someone else can probably give a better answer.

Allin Cottrell.

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