1 /*
2 * Copyright (c) 1996, 2018, 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
1408 System.out.println("\n Error: <allfonts."
1409 + getString(table_scriptIDs[ii])
1410 + "> entry is missing!!!");
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
|
1 /*
2 * Copyright (c) 1996, 2020, 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
1408 System.out.println("\n Error: <allfonts."
1409 + getString(table_scriptIDs[ii])
1410 + "> entry is missing!!!");
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
|