This looks like a problem I fixed by editing the pango.modules file.  For
me, this file was in ../pango-1.4.1/etc/pango and looked like:

# Pango Modules file
# Automatically generated file, do not edit
#
/target/lib/pango/1.4.0/modules/pango-arabic-fc.dll ArabicScriptEngineFc
PangoEngineShape PangoRenderFc arabic:*
/target/lib/pango/1.4.0/modules/pango-basic-fc.dll BasicScriptEngineFc
PangoEngineShape PangoRenderFc armenian:* bopomofo:* cherokee:* coptic:*
cyrillic:* deseret:* ethiopic:* georgian:* gothic:* greek:* han:*
hiragana:* katakana:* latin:* ogham:* old-italic:* runic:*
canadian-aboriginal:* yi:* braille:* cypriot:* limbu:* osmanya:* shavian:*
linear-b:* ugaritic:* common:
/target/lib/pango/1.4.0/modules/pango-basic-win32.dll
BasicScriptEngineWin32 PangoEngineShape PangoRenderWin32 common:
/target/lib/pango/1.4.0/modules/pango-hangul-fc.dll HangulScriptEngineFc
PangoEngineShape PangoRenderFc hangul:*
...

The /target/ stuff is garbage which I suppose should have been replaced by
some automatic configure tool, which never seems to work with cygwin/mingw
due to problems like path conventions.  Anyway, when I put an edited
etc/pango/pango.modules into the path where I run my application, and make
sure that '/target/' points to my pango installation, it works:

# Pango Modules file
# Automatically generated file, do not edit (hah!)
#
c:\proj\gtk\pango-1.4.1\lib\pango\1.4.0\modules\pango-arabic-fc.dll
ArabicScriptEngineFc PangoEngineShape PangoRenderFc arabic:*
c:\proj\gtk\pango-1.4.1\lib\pango\1.4.0\modules\pango-basic-fc.dll
BasicScriptEngineFc PangoEngineShape PangoRenderFc armenian:* bopomofo:*
cherokee:* coptic:* cyrillic:* deseret:* ethiopic:* georgian:* gothic:*
greek:* han:* hiragana:* katakana:* latin:* ogham:* old-italic:* runic:*
canadian-aboriginal:* yi:* braille:* cypriot:* limbu:* osmanya:* shavian:*
linear-b:* ugaritic:* common:
c:\proj\gtk\pango-1.4.1\lib\pango\1.4.0\modules\pango-basic-win32.dll
BasicScriptEngineWin32 PangoEngineShape PangoRenderWin32 common:
c:\proj\gtk\pango-1.4.1\lib\pango\1.4.0\modules\pango-hangul-fc.dll
HangulScriptEngineFc PangoEngineShape PangoRenderFc hangul:*
c:\proj\gtk\pango-1.4.1\lib\pango\1.4.0\modules\pango-hebrew-fc.dll
HebrewScriptEngineFc PangoEngineShape PangoRenderFc hebrew:*
c:\proj\gtk\pango-1.4.1\lib\pango\1.4.0\modules\pango-indic-fc.dll
devaScriptEngineFc PangoEngineShape PangoRenderFc devanagari:*
...

-> Pete

--------------------------------------------------------------------

====================================================================
Pete Nagy                                        tel: (303) 583-0248
Vexcel Corporation                               fax: (303) 583-0246
http://www.vexcel.com                           home: (303) 823-2336
====================================================================


On Wed, 22 Jun 2005, Alf C Stockton wrote:

> On Sun, 19 Jun 2005 Hubert Soko?owski <[EMAIL PROTECTED]> wrote:-
>
> >On Sun, 19 Jun 2005 08:37:02 +0200
> >Alf Stockton <[EMAIL PROTECTED]> wrote:
> >
> >> The error I am getting from a program I wrote using GTK+ 2.6.7 on
> >> Windows reads:-
> >>
> >> Pango-ERROR**:file shape.c: line 75(pango-shape) assertion failed:
> >> (glyphs->num_glyphs > 0) aborting
> >>
> >> Help ..... what have I done wrong or what is missing in my setup?
> >> BTW The Pango version is 1.2.0.
> >I have the same problem with my program. I think pango sometimes does
> >not link correctly. check with dumpbin /dependencies to see if pango is
> >listed. It should be but it is probably not. Unfortunately I don't know
> > how to cope with this problem.
>
> dumpbin /dependents MTI.exe gives :-
>
> Dump of file MTI.exe
>
> File Type: EXECUTABLE IMAGE
>
>     Image has the following dependencies:
>
>       KERNEL32.dll
>       msvcrt.dll
>       ODBC32.dll
>       libatk-1.0-0.dll
>       libgdk_pixbuf-2.0-0.dll
>       libglib-2.0-0.dll
>       libgobject-2.0-0.dll
>       libgtk-win32-2.0-0.dll
>
>     Summary
>
>           1000 .bss
>           1000 .data
>           1000 .idata
>           1000 .rdata
>           4000 .text
>
> and there is no pango that I can see.
> Does this mean that I should alter my Makefile in anyway ?
> It currently contains :-
> CC = gcc
> LDFLAGS="-Wl,--export-dynamic,--export-all-symbols,--add-stdcall-alias"
> CFLAGS = -Wall                          \
>           -DG_DISABLE_DEPRECATED          \
>           -DGDK_DISABLE_DEPRECATED        \
>           -DGDK_PIXBUF_DISABLE_DEPRECATED \
>           -DGTK_DISABLE_DEPRECATED
>
> MTI.exe: interface.c callbacks.c main.c support.c odbc-isql.c
>           $(CC) -mwindows -static -mms-bitfields interface.c callbacks.c 
> main.c
> support.c odbc-isql.c -o MTI.exe $(DEPRECTATED) -Ic:/Gtk/include/gtk-2.0
> -Ic:/Gtk/lib/gtk-2.0/include -Ic:/Gtk/include/atk-1.0 
> -Ic:/Gtk/include/pango-1.0
> -Ic:/Gtk/include/glib-2.0 -Ic:/Gtk/lib/glib-2.0/include  -Lc:/Gtk/lib
> -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0
> -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
> -lodbc32
>
>
> clean:
>           rm -f *.o MTI.exe
>
>
> ---
>
> Regards,
> Alf Stockton  www.stockton.co.za
>
> The only way to get rid of a temptation is to yield to it.
>               -- Oscar Wilde
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to