diff options
Diffstat (limited to 'lang/openjdk7/patches/patch-aq')
-rw-r--r-- | lang/openjdk7/patches/patch-aq | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/openjdk7/patches/patch-aq b/lang/openjdk7/patches/patch-aq new file mode 100644 index 00000000000..5c9a9a7b840 --- /dev/null +++ b/lang/openjdk7/patches/patch-aq @@ -0,0 +1,17 @@ +$NetBSD: patch-aq,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $ + +--- jdk/src/share/classes/sun/font/FontManager.java.orig 2008-12-19 09:45:40.000000000 +0100 ++++ jdk/src/share/classes/sun/font/FontManager.java +@@ -3410,6 +3410,12 @@ public final class FontManager { + info[1] = info[1] + File.separator + "arial.ttf"; + } else { + initFontConfigFonts(false); ++ if (fontConfigFonts == null) { ++ info[0] = "nonexistent"; ++ info[1] = "/nonexistent.ttf"; ++ defaultPlatformFont = info; ++ return defaultPlatformFont; ++ } + for (int i=0; i<fontConfigFonts.length; i++) { + if ("sans".equals(fontConfigFonts[i].fcFamily) && + 0 == fontConfigFonts[i].style) { |