Re: need help for Pango module



On Tue, 2005-01-18 at 11:15 +0700, Jens Herden wrote:
> Hi,
> 
> I am working on a Pango module for Khmer script and I hope this is the right 
> list to ask questions about Pango.

This is OK. gtk-i18n-list might be a bit better.

> So far the module is working with gedit but if I start abiword or firefox it 
> does not work. I checked with ldd and got this:

Abiword doesn't use Pango at all for the main "word processing" part.

Firefox doesn't currently use Pango in the default build... I think the
support for Pango is now in CVS, but it has to be enabled at build time
and possibly also at run time by setting an environment variable.

> kde3 3 jh-lap:~> ldd `which gedit` | grep pango
>         libpangoft2-1.0.so.0 => /opt/gnome/lib/libpangoft2-1.0.so.0 
> (0x40d15000)
>         libpangoxft-1.0.so.0 => /opt/gnome/lib/libpangoxft-1.0.so.0 
> (0x41046000)
>         libpangox-1.0.so.0 => /opt/gnome/lib/libpangox-1.0.so.0 (0x4104d000)
>         libpango-1.0.so.0 => /opt/gnome/lib/libpango-1.0.so.0 (0x41058000)
> kde3 3 jh-lap:~> ldd `which abiword` | grep pango
>         libpangoft2-1.0.so.0 => /opt/gnome/lib/libpangoft2-1.0.so.0 
> (0x40381000)
>         libpangoxft-1.0.so.0 => /opt/gnome/lib/libpangoxft-1.0.so.0 
> (0x40690000)
>         libpangox-1.0.so.0 => /opt/gnome/lib/libpangox-1.0.so.0 (0x40697000)
>         libpango-1.0.so.0 => /opt/gnome/lib/libpango-1.0.so.0 (0x406a2000)
> 
> For me it looks like both applications use the same library, so what could be 
> the reason that it is only working with gedit?

Just because Firefox and Abiword are linked to GTK+ doesn't mean they
are using it for the main text display. (Abiword will be using it for
its menus.)

> Another question is about the function "pango_ot_buffer_add_glyph". The last 
> parameter is called "cluster" and I don't really understand what should go 
> there. What is supposed to be there?

The 'cluster' parameter indicates what source character the glyph comes
from. It allows for doing reverse mapping from glyphs to characters for 
things for things like mouse selection.

Regards,
						owen

Attachment: signature.asc
Description: This is a digitally signed message part



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