Re: Pango and text handling in GTK+.
- From: Lars Clausen <lrclause cs uiuc edu>
- To: GTK-App-Devel Mailing List <gtk-app-devel-list gnome org>, GTK-I18N Mailing List <gtk-i18n-list gnome org>
- Subject: Re: Pango and text handling in GTK+.
- Date: 25 Jul 2002 21:53:44 -0500
On Fri, 26 Jul 2002, Zenith Lau wrote:
> Hello,
>
> 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 also use the FreeType backend supposedly without GTK. PAPS, a
postscript printing program, does exactly that:
bash-2.05$ ldd paps
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x40024000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x40051000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x40081000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x400b9000)
libdl.so.2 => /lib/libdl.so.2 (0x400bd000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x400c1000)
libc.so.6 => /lib/libc.so.6 (0x40125000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40248000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Notice no GTK, no X, no nothing.
Look at
<URL:http://developer.gnome.org/doc/API/2.0/pango/pango-freetype-fonts-and-rendering.html>,
in particular you should start with pango_ft2_get_context() and work from
there.
> Yet, I can see the screenshot in pango.org, which different
> script is displayed. Does it means that, gtk2 can now provide
> some m17n features (for displaying different script at the same
> time) ?
Yes.
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]