< prev index next >
src/java.desktop/share/classes/sun/font/FontUtilities.java
Print this page
*** 48,57 ****
--- 48,59 ----
public static boolean isLinux;
public static boolean isMacOSX;
+ public static boolean useJDKScaler;
+
public static boolean useT2K;
public static boolean isWindows;
public static boolean isOpenJDK;
*** 74,88 ****
isLinux = osName.startsWith("Linux");
isMacOSX = osName.contains("OS X"); // TODO: MacOSX
! String t2kStr = System.getProperty("sun.java2d.font.scaler");
! if (t2kStr != null) {
! useT2K = "t2k".equals(t2kStr);
} else {
useT2K = false;
}
isWindows = osName.startsWith("Windows");
String jreLibDirName = System.getProperty("java.home", "")
+ File.separator + "lib";
String jreFontDirName =
--- 76,105 ----
isLinux = osName.startsWith("Linux");
isMacOSX = osName.contains("OS X"); // TODO: MacOSX
! /* Support a value of "t2k" as meaning use the JDK internal
! * scaler over the platform scaler whether or not t2k is
! * actually available.
! * This can be considered transitional support for some
! * level of compatibility, as in it avoids the native scaler
! * as before but cannot guarantee rendering equivalence
! * with T2K.
! * It will also use t2k instead of freetype if t2k is
! * available - this is the same as before.
! * The new value of "jdk" means even if t2k is available,
! * the decision as to whether to use that or freetype is
! * not affected by this setting.
! */
! String scalerStr = System.getProperty("sun.java2d.font.scaler");
! if (scalerStr != null) {
! useT2K = "t2k".equals(scalerStr);
! useJDKScaler = useT2K || "jdk".equals(scalerStr);
} else {
useT2K = false;
+ useJDKScaler = false;
}
isWindows = osName.startsWith("Windows");
String jreLibDirName = System.getProperty("java.home", "")
+ File.separator + "lib";
String jreFontDirName =
< prev index next >