jdk/src/share/classes/sun/font/FontUtilities.java
changeset 12538 211d6e82fe51
parent 12047 320a714614e9
child 20864 fb03b7eaa114
equal deleted inserted replaced
12438:c1183d4a80d4 12538:211d6e82fe51
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    76                 String osName = System.getProperty("os.name", "unknownOS");
    76                 String osName = System.getProperty("os.name", "unknownOS");
    77                 isSolaris = osName.startsWith("SunOS");
    77                 isSolaris = osName.startsWith("SunOS");
    78 
    78 
    79                 isLinux = osName.startsWith("Linux");
    79                 isLinux = osName.startsWith("Linux");
    80 
    80 
    81                 isMacOSX = osName.startsWith("Mac OS X"); // TODO: MacOSX
    81                 isMacOSX = osName.contains("OS X"); // TODO: MacOSX
    82 
    82 
    83                 String t2kStr = System.getProperty("sun.java2d.font.scaler");
    83                 String t2kStr = System.getProperty("sun.java2d.font.scaler");
    84                 if (t2kStr != null) {
    84                 if (t2kStr != null) {
    85                     useT2K = "t2k".equals(t2kStr);
    85                     useT2K = "t2k".equals(t2kStr);
    86                 } else {
    86                 } else {