10 Dec 2008 23:18
FYI: Minimal fix for PR38473
Andrew John Hughes <gnu_andrew <at> member.fsf.org>
2008-12-10 22:18:39 GMT
2008-12-10 22:18:39 GMT
When attempting to obtain a GlyphVector for a font, our Gtk+ peer calls FT_Outline_Decompose on the outline of the font's glyph. However, this fails, causing a segmentation fault, if the font is a bitmap font. This patch adds a check to ensure the outline is valid before using it. For a full fix, we should really return some form of outline for a bitmapped font. ChangeLog: 2008-12-09 Andrew John Hughes <gnu_andrew <at> member.fsf.org> PR classpath/38473: * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c: (Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getGlyphOutlineNative): Check that the glyph is an outline before calling FT_Outline_Decompose. -- -- Andrew :) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint = F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c ===================================================================(Continue reading)
RSS Feed