bug-classpath
[Top][All Lists]
Advanced

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

[Bug awt/28804] segfault in libfreetype (debian) with e.g. Java2Demo


From: yun at haier-ic dot com
Subject: [Bug awt/28804] segfault in libfreetype (debian) with e.g. Java2Demo
Date: 27 Jun 2008 07:31:37 -0000


------- Comment #7 from yun at haier-ic dot com  2008-06-27 07:31 -------
google lead me to this thread, and I'm new to mail-list or bugzilla, so if I
comment in the wrong way, please be friendly :)

I met this bug when I'm porting classpath-0.97.2 to gtk-dfb. We will get this
error if we try to decompose a non-vector font. The code locate in
CLASSPATH/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreeTypeglyphVector.c is:

FT_Get_Glyph( ft_face->glyph, &glyph );
FT_Outline_Decompose(....);

then if the font is not in FT_GLYPH_FORMAT_OUTLINE format, Segment Fault is
met.

So I just add one line between the above two lines to avoid the fault:

 FT_Get_Glyph( ft_face->glyph, &glyph );
+if (ft_face->glyph->format == FT_GLYPH_FORMAT_OUTLINE)
 FT_Outline_Decompose(....);

by adding this, now I can run classpath & jamvm on gtk-dfb, the only problem is
all text are shown as black boxes, because in fact no font is decomposed at all
(in my print, only font with format == FT_GLYPH_FORMAT_BITMAP is found).

I'm not familar with freetype, and don't know how to still display text even if
no vector fonts found. Dose anyone have some ideas? Any suggestion is welcomed.



forgive my poor English, please.


-- 

yun at haier-ic dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yun at haier-ic dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28804





reply via email to

[Prev in Thread] Current Thread [Next in Thread]