Re: font proplems
- From: John K Luebs <jkluebs luebsphoto com>
- To: Biswapesh Chattopadhyay <biswapesh_chatterjee tcscal co in>
- Cc: GTK App Devel <gtk-app-devel-list gnome org>
- Subject: Re: font proplems
- Date: Tue, 25 Feb 2003 02:32:42 -0500
On Tue, Feb 25, 2003 at 12:10:46PM +0530, Biswapesh Chattopadhyay wrote:
Is there any tutorial/HOWTO/documentation on how to change the GdkFont
stuff to use Pango and input methods ?
Rgds,
Biswa.
Well, the Pango documentation seems to be the best stuff available.
There is a DocBook formatted guide that Havoc Pennington wrote up and
posted to the devel list back in 2001. You can find it here:
http://mail.gnome.org/archives/gtk-devel-list/2001-September/msg00171.html
It was intended as a quick guide to assist in porting GTK+ 1.2 apps to
GTK+ 2.0.
It gives a nice intro to PangoFontDescription and PangoLayout.
Basically, a PangoFontDescription takes the place of GdkFont for font
selection. Pango does not use XLFDs in its interface,
but instead uses a much simpler and saner specification.
For determining size of rendered text you will probably be interested in
pango_layout objects, specifically pango_layout_get_extents.
The relevant parts of the Pango docs are Basic Pango Interfaces/Fonts
for PangoFondDescription and Basic Pango Interfaces/Layout Objects for
pango_layout stuff.
--jkl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]