File: java7-compat.patch

package info (click to toggle)
libiscwt-java 5.3.20100629-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 648 kB
  • ctags: 1,235
  • sloc: java: 6,048; sh: 12; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Compatibility patch for Java 7
Origin: http://sourceforge.net/projects/jpodrenderer/forums/forum/841333/topic/5320298
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libiscwt-java/+bug/888963
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678032

--- a/src/de/intarsys/cwt/font/FontEnvironment.java	2010-06-25 02:47:34.000000000 -0430
+++ b/src/de/intarsys/cwt/font/FontEnvironment.java	2012-08-14 21:21:18.000000000 -0430
@@ -102,7 +102,7 @@
 		String definition = null;
 		// force FontManager initialization
 		Font.decode("dummy").getFamily(); //$NON-NLS-1$
-		definition = FontManager.getFontPath(true);
+		definition = sun.font.SunFontManager.getInstance().getPlatformFontPath(true);
 		if (definition == null) {
 			return new File[0];
 		}