jdk/src/solaris/classes/sun/font/FontConfigManager.java
changeset 21235 38393a2aaf88
parent 10085 7f82305d48d1
child 23010 6dadb192ad81
equal deleted inserted replaced
21234:e5d41ac9fb32 21235:38393a2aaf88
   106      * of FontManager from the FontManagerFactory.
   106      * of FontManager from the FontManagerFactory.
   107      */
   107      */
   108     public FontConfigManager() {
   108     public FontConfigManager() {
   109     }
   109     }
   110 
   110 
   111     public static String[] getFontConfigNames() {
       
   112         return fontConfigNames;
       
   113     }
       
   114 
       
   115     /* Called from code that needs to know what are the AA settings
   111     /* Called from code that needs to know what are the AA settings
   116      * that apps using FC would pick up for the default desktop font.
   112      * that apps using FC would pick up for the default desktop font.
   117      * Note apps can change the default desktop font. etc, so this
   113      * Note apps can change the default desktop font. etc, so this
   118      * isn't certain to be right but its going to correct for most cases.
   114      * isn't certain to be right but its going to correct for most cases.
   119      * Native return values map to the text aa values in sun.awt.SunHints.
   115      * Native return values map to the text aa values in sun.awt.SunHints.
   180         long t0 = 0;
   176         long t0 = 0;
   181         if (FontUtilities.isLogging()) {
   177         if (FontUtilities.isLogging()) {
   182             t0 = System.nanoTime();
   178             t0 = System.nanoTime();
   183         }
   179         }
   184 
   180 
   185         String[] fontConfigNames = FontConfigManager.getFontConfigNames();
       
   186         FcCompFont[] fontArr = new FcCompFont[fontConfigNames.length];
   181         FcCompFont[] fontArr = new FcCompFont[fontConfigNames.length];
   187 
   182 
   188         for (int i = 0; i< fontArr.length; i++) {
   183         for (int i = 0; i< fontArr.length; i++) {
   189             fontArr[i] = new FcCompFont();
   184             fontArr[i] = new FcCompFont();
   190             fontArr[i].fcName = fontConfigNames[i];
   185             fontArr[i].fcName = fontConfigNames[i];