3909N/A * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A /* Needs to be kept in sync with updates in the languages used in 0N/A * the fontconfig files. 0N/A /* Don't create a no-op entry, so we can optimize this case 0N/A * i.e. we don't need to do anything so can avoid slower paths in 0N/A// reorderMap.put("UTF-8", "latin-1"); 0N/A split(
"japanese-x0201,japanese-x0208,japanese-x0212"));
0N/A split(
"chinese-gb18030-0,chinese-gb18030-1"));
0N/A split(
"chinese-big5,chinese-hkscs,chinese-gb18030-0,chinese-gb18030-1"));
0N/A split(
"chinese-cns11643-1,chinese-cns11643-2,chinese-cns11643-3"));
0N/A split(
"japanese-x0201,japanese-x0208,japanese-x0212"));
0N/A split(
"japanese-x0201,japanese-x0208,japanese-x0212"));
0N/A /* Don't create a no-op entry, so we can optimize this case */ 0N/A// reorderMap.put("ISO-8859-1", "latin-1"); 0N/A split(
"japanese-x0201,japanese-x0208"));
0N/A * Sets the OS name and version from environment information. 0N/A //don't care os name on Solaris 0N/A /* Ubuntu and (perhaps others) use only lsb-release. 0N/A * Syntax and encoding is compatible with java properties. 0N/A * For Ubuntu the ID is "Ubuntu". 0N/A * Gets the OS version string from a Linux release-specific file. 0N/A // overrides FontConfiguration.getFallbackFamilyName 0N/A // either had aliases for TimesRoman & Co. or defined mappings for them. 0N/A // extract encoding field from XLFD 0N/A return "sun.awt.motif.X11Dingbats";
0N/A return "sun.awt.Symbol";
0N/A /* methods for Motif support *********************************************/ 0N/A // for X11, component font name is XLFD 0N/A // if we have a file name already, just use it; otherwise let's see 0N/A // what the graphics environment can provide 0N/A * Get default font for Motif widgets to use, preventing them from 0N/A * wasting time accessing inappropriate X resources. This is called 0N/A * only from native code. 0N/A * This is part of a Motif specific performance enhancement. By 0N/A * default, when Motif widgets are created and initialized, Motif will 0N/A * set up default fonts for the widgets, which we ALWAYS override. 0N/A * This set up includes finding the default font in the widget's X 0N/A * resources and fairly expensive requests of the X server to identify 0N/A * the specific font or fontset. We avoid all of this overhead by 0N/A * providing a well known font to use at the creation of widgets, where 0N/A * The X11 fonts are specified by XLFD strings which have %d as a 0N/A * marker to indicate where the fontsize should be substituted. [The 0N/A * libc function sprintf() is used to replace it.] The value 140 0N/A * specifies a font size of 14 points. 0N/A /* methods for table setup ***********************************************/ 0N/A // encodingMap maps XLFD encoding component to 0N/A // name of corresponding java.nio charset 0N/A // use standard converter on Solaris