Re: How to use Pango Font?



Tom Liu wrote:

How to transfer a fontname to font?

I want to select a font use GtkFontSelectionDialog,  I got font-name.

How to draw a text with the selected font?

I know I should use pango, because GdkFont is deprecated.

Can some one show me a little code how to use the PangoFont and PangoFontDescription <http://flexserver/techdocs/GTK/pango/pango-Fonts.html#PangoFontDescription>?

Do you really need to use PangoFont ? If you just need to draw text with GDK/Pango take a look at:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html#id2903641

You also can search lists (there were a lot of similar questions):
http://mail.gnome.org/archives/gtk-list/
http://mail.gnome.org/archives/gtk-app-devel-list/

   Olexiy





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