Re: Font class/struct documentation



As far as i am aware, the gtk_paint_ functions will just use pango-cairo code internally to render the text anyway; doing it yourself is simply more direct API-wise but that's it.

As for how to obtain that information from Pango (TT font or not), maybe someone else can answer it, i don't know the insides that much.

-- Milosz

2008/3/29, Igor Korot <ikorot earthlink net>:

Hi, Milosz,

2 questions:

1. What is the difference between those 2?

2. Is there a way to discover if the font is a "TrueType"?

 

Thank you.


-----Original Message-----
From: Milosz Derezynski
Sent: Mar 28, 2008 4:36 PM
To: Igor Korot
Cc: gtk-list gnome org
Subject: Re: Font class/struct documentation

Fonts are now being handled by Pango and drawing can happen either directly through Cairo:
http://library.gnome.org/devel/pango/1.20/pango-Cairo-Rendering.html

or the Style API (note to use the *_paint_* variants, e.g. gtk_paint_layout, not _draw_layout):
http://library.gnome.org/devel/gtk/stable/GtkStyle.html

HTH

2008/3/28, Igor Korot <ikorot earthlink net>:
Hi, ALL,
Browsing through the GTK/GDK documentation, I found this:

http://library.gnome.org/devel/gdk/stable/gdk-Fonts.html

The problem with it is that 98% of functions there said to
be deprecated.

So, here is the question: Is there a doc of functions I
can use to get the font info that are _not_ deprecated?
And where is the doc on them?

Thank you.
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




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