< prev index next >

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

Print this page
rev 59106 : imported patch client


1411                 errors++;
1412                 continue;
1413             } else if (fid < 0) {
1414                 fid = (short)-fid;
1415                 for (int iii = 0; iii < NUM_FONTS; iii++) {
1416                     for (int iij = 0; iij < NUM_STYLES; iij++) {
1417                         int jj = iii * NUM_STYLES + iij;
1418                         short ffid = table_scriptFonts[fid + jj];
1419                         if (ffid == 0) {
1420                             System.err.println("\n Error: <"
1421                                            + getFontName(iii) + "."
1422                                            + getStyleName(iij) + "."
1423                                            + getString(table_scriptIDs[ii])
1424                                            + "> entry is missing!!!");
1425                             errors++;
1426                         }
1427                     }
1428                 }
1429             }
1430         }
1431         if ("SunOS".equals(osName)) {
1432             for (int ii = 0; ii < table_awtfontpaths.length; ii++) {
1433                 if (table_awtfontpaths[ii] == 0) {
1434                     String script = getString(table_scriptIDs[ii]);
1435                     if (script.contains("dingbats") ||
1436                         script.contains("symbol")) {
1437                         continue;
1438                     }
1439                     System.err.println("\nError: "
1440                                        + "<awtfontpath."
1441                                        + script
1442                                        + "> entry is missing!!!");
1443                     errors++;
1444                 }
1445             }
1446         }
1447         if (errors != 0) {
1448             System.err.println("!!THERE ARE " + errors + " ERROR(S) IN "
1449                                + "THE FONTCONFIG FILE, PLEASE CHECK ITS CONTENT!!\n");
1450             System.exit(1);
1451         }
1452     }
1453 
1454     private static boolean isEmpty(short[] a) {
1455         for (short s : a) {
1456             if (s != -1) {
1457                 return false;
1458             }
1459         }
1460         return true;
1461     }
1462 
1463     //dump the fontconfig data tables
1464     private static void dump() {
1465         System.out.println("\n----Head Table------------");
1466         for (int ii = 0; ii < HEAD_LENGTH; ii++) {




1411                 errors++;
1412                 continue;
1413             } else if (fid < 0) {
1414                 fid = (short)-fid;
1415                 for (int iii = 0; iii < NUM_FONTS; iii++) {
1416                     for (int iij = 0; iij < NUM_STYLES; iij++) {
1417                         int jj = iii * NUM_STYLES + iij;
1418                         short ffid = table_scriptFonts[fid + jj];
1419                         if (ffid == 0) {
1420                             System.err.println("\n Error: <"
1421                                            + getFontName(iii) + "."
1422                                            + getStyleName(iij) + "."
1423                                            + getString(table_scriptIDs[ii])
1424                                            + "> entry is missing!!!");
1425                             errors++;
1426                         }
1427                     }
1428                 }
1429             }
1430         }
















1431         if (errors != 0) {
1432             System.err.println("!!THERE ARE " + errors + " ERROR(S) IN "
1433                                + "THE FONTCONFIG FILE, PLEASE CHECK ITS CONTENT!!\n");
1434             System.exit(1);
1435         }
1436     }
1437 
1438     private static boolean isEmpty(short[] a) {
1439         for (short s : a) {
1440             if (s != -1) {
1441                 return false;
1442             }
1443         }
1444         return true;
1445     }
1446 
1447     //dump the fontconfig data tables
1448     private static void dump() {
1449         System.out.println("\n----Head Table------------");
1450         for (int ii = 0; ii < HEAD_LENGTH; ii++) {


< prev index next >