Win32FontManager.java revision 3937
2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. 1687N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1687N/A * This code is free software; you can redistribute it and/or modify it 1687N/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 1687N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 1687N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1687N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1687N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1687N/A * version 2 for more details (a copy is included in the LICENSE file that 1687N/A * You should have received a copy of the GNU General Public License version 1687N/A * 2 along with this work; if not, write to the Free Software Foundation, 1687N/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 1687N/A * The X11 implementation of {@link FontManager}. 3937N/A /* Must use Java rasteriser since GDI doesn't 3937N/A * enumerate (allow direct use) of EUDC fonts. 1687N/A /* Used on Windows to obtain from the windows registry the name 1687N/A * of a file containing the system EUFC font. If running in one of 1687N/A * the locales for which this applies, and one is defined, the font 1687N/A * defined by this file is appended to all composite fonts as a 1687N/A /* Register the JRE fonts so that the native platform can 1687N/A * access them. This is used only on Windows so that when 1687N/A * printing the printer driver can access the fonts. 1687N/A /* Unlike the shared code version, this expects a base file name - 1687N/A * The font configuration file has base file names and the FontConfiguration 1687N/A * class reports these back to the GraphicsEnvironment, so these 1687N/A * are the componentFileNames of CompositeFonts. 1687N/A // REMIND: case compare depends on platform 1687N/A /* Look in the JRE font directory first. 1687N/A * This is playing it safe as we would want to find fonts in the 1687N/A * JRE font directory ahead of those in the system directory 1687N/A * Because these need to be registed just for use when printing, 1687N/A * we defer the actual registration and the static initialiser 1687N/A * for the printing class makes the call to registerJREFontsForPrinting() 3361N/A * populate the map with the most common windows fonts. 3361N/A /* Segoe UI is the default UI font for Vista and later, and 3361N/A * is used by the Win L&F which is used by FX too. 3361N/A * Tahoma is used for the Win L&F on XP. 3361N/A * Verdana is used in some FX UI controls. 3361N/A /* The following are important because they are the core 3361N/A * members of the default "Dialog" font.