src/share/classes/sun/awt/FontConfiguration.java

Print this page


   1 /*
   2  * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


1487                 fid = (short)-fid;
1488                 for (int iii = 0; iii < NUM_FONTS; iii++) {
1489                     for (int iij = 0; iij < NUM_STYLES; iij++) {
1490                         int jj = iii * NUM_STYLES + iij;
1491                         short ffid = table_scriptFonts[fid + jj];
1492                         System.out.println("  "
1493                                            + getFontName(iii) + "."
1494                                            + getStyleName(iij) + "."
1495                                            + getString(table_scriptIDs[ii])
1496                                            + "="
1497                                            + getString(table_componentFontNameIDs[ffid]));
1498                     }
1499                 }
1500 
1501             }
1502         }
1503         System.out.println("\n----elcIDs----------------");
1504         printTable(table_elcIDs, 0);
1505         System.out.println("\n----sequences-------------");
1506         for (int ii = 0; ii< table_elcIDs.length; ii++) {
1507             System.out.println("  " + ii + "/" + getString((short)table_elcIDs[ii]));
1508             short[] ss = getShortArray(table_sequences[ii * NUM_FONTS + 0]);
1509             for (int jj = 0; jj < ss.length; jj++) {
1510                 System.out.println("     " + getString((short)table_scriptIDs[ss[jj]]));
1511             }
1512         }
1513         System.out.println("\n----fontfileNameIDs-------");
1514         printTable(table_fontfileNameIDs, 0);
1515 
1516         System.out.println("\n----componentFontNameIDs--");
1517         printTable(table_componentFontNameIDs, 1);
1518         System.out.println("\n----filenames-------------");
1519         for (int ii = 0; ii < table_filenames.length; ii++) {
1520             if (table_filenames[ii] == -1) {
1521                 System.out.println("  " + ii + " : null");
1522             } else {
1523                 System.out.println("  " + ii + " : "
1524                    + getString(table_fontfileNameIDs[table_filenames[ii]]));
1525             }
1526         }
1527         System.out.println("\n----awtfontpaths---------");
1528         for (int ii = 0; ii < table_awtfontpaths.length; ii++) {
1529             System.out.println("  " + getString(table_scriptIDs[ii])
1530                                + " : "
1531                                + getString(table_awtfontpaths[ii]));
1532         }
1533         System.out.println("\n----proportionals--------");
1534         for (int ii = 0; ii < table_proportionals.length; ii++) {
1535             System.out.println("  "
1536                    + getString((short)table_componentFontNameIDs[table_proportionals[ii++]])
1537                    + " -> "
1538                    + getString((short)table_componentFontNameIDs[table_proportionals[ii]]));
1539         }
1540         int i = 0;
1541         System.out.println("\n----alphabeticSuffix----");
1542         while (i < table_alphabeticSuffix.length) {
1543           System.out.println("    " + getString(table_elcIDs[table_alphabeticSuffix[i++]])
1544                              + " -> " + getString(table_alphabeticSuffix[i++]));
1545         }
1546         System.out.println("\n----String Table---------");
1547         System.out.println("    stringID:    Num =" + table_stringIDs.length);
1548         System.out.println("    stringTable: Size=" + table_stringTable.length * 2);
1549 
1550         System.out.println("\n----fallbackScriptIDs---");
1551         short[] fbsIDs = getShortArray(head[INDEX_fallbackScripts]);
1552         for (int ii = 0; ii < fbsIDs.length; ii++) {
1553           System.out.println("  " + getString(table_scriptIDs[fbsIDs[ii]]));
1554         }
1555         System.out.println("\n----appendedfontpath-----");
1556         System.out.println("  " + getString(head[INDEX_appendedfontpath]));
1557         System.out.println("\n----Version--------------");
1558         System.out.println("  " + getString(head[INDEX_version]));


   1 /*
   2  * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


1487                 fid = (short)-fid;
1488                 for (int iii = 0; iii < NUM_FONTS; iii++) {
1489                     for (int iij = 0; iij < NUM_STYLES; iij++) {
1490                         int jj = iii * NUM_STYLES + iij;
1491                         short ffid = table_scriptFonts[fid + jj];
1492                         System.out.println("  "
1493                                            + getFontName(iii) + "."
1494                                            + getStyleName(iij) + "."
1495                                            + getString(table_scriptIDs[ii])
1496                                            + "="
1497                                            + getString(table_componentFontNameIDs[ffid]));
1498                     }
1499                 }
1500 
1501             }
1502         }
1503         System.out.println("\n----elcIDs----------------");
1504         printTable(table_elcIDs, 0);
1505         System.out.println("\n----sequences-------------");
1506         for (int ii = 0; ii< table_elcIDs.length; ii++) {
1507             System.out.println("  " + ii + "/" + getString(table_elcIDs[ii]));
1508             short[] ss = getShortArray(table_sequences[ii * NUM_FONTS + 0]);
1509             for (int jj = 0; jj < ss.length; jj++) {
1510                 System.out.println("     " + getString(table_scriptIDs[ss[jj]]));
1511             }
1512         }
1513         System.out.println("\n----fontfileNameIDs-------");
1514         printTable(table_fontfileNameIDs, 0);
1515 
1516         System.out.println("\n----componentFontNameIDs--");
1517         printTable(table_componentFontNameIDs, 1);
1518         System.out.println("\n----filenames-------------");
1519         for (int ii = 0; ii < table_filenames.length; ii++) {
1520             if (table_filenames[ii] == -1) {
1521                 System.out.println("  " + ii + " : null");
1522             } else {
1523                 System.out.println("  " + ii + " : "
1524                    + getString(table_fontfileNameIDs[table_filenames[ii]]));
1525             }
1526         }
1527         System.out.println("\n----awtfontpaths---------");
1528         for (int ii = 0; ii < table_awtfontpaths.length; ii++) {
1529             System.out.println("  " + getString(table_scriptIDs[ii])
1530                                + " : "
1531                                + getString(table_awtfontpaths[ii]));
1532         }
1533         System.out.println("\n----proportionals--------");
1534         for (int ii = 0; ii < table_proportionals.length; ii++) {
1535             System.out.println("  "
1536                    + getString(table_componentFontNameIDs[table_proportionals[ii++]])
1537                    + " -> "
1538                    + getString(table_componentFontNameIDs[table_proportionals[ii]]));
1539         }
1540         int i = 0;
1541         System.out.println("\n----alphabeticSuffix----");
1542         while (i < table_alphabeticSuffix.length) {
1543           System.out.println("    " + getString(table_elcIDs[table_alphabeticSuffix[i++]])
1544                              + " -> " + getString(table_alphabeticSuffix[i++]));
1545         }
1546         System.out.println("\n----String Table---------");
1547         System.out.println("    stringID:    Num =" + table_stringIDs.length);
1548         System.out.println("    stringTable: Size=" + table_stringTable.length * 2);
1549 
1550         System.out.println("\n----fallbackScriptIDs---");
1551         short[] fbsIDs = getShortArray(head[INDEX_fallbackScripts]);
1552         for (int ii = 0; ii < fbsIDs.length; ii++) {
1553           System.out.println("  " + getString(table_scriptIDs[fbsIDs[ii]]));
1554         }
1555         System.out.println("\n----appendedfontpath-----");
1556         System.out.println("  " + getString(head[INDEX_appendedfontpath]));
1557         System.out.println("\n----Version--------------");
1558         System.out.println("  " + getString(head[INDEX_version]));