3909N/A * Copyright (c) 1999, 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 0N/A * This function attempts to make a Win32 API call to 0N/A * BOOL SetProcessDPIAware(VOID); 0N/A * which is only present on Windows Vista, and which instructs the 0N/A * Vista Windows Display Manager that this application is High DPI Aware 0N/A * and does not need to be scaled by the WDM and lied about the 0N/A * actual system dpi. 0N/A "SetProcessDPIAware");
430N/A * This function is called from toolkit event handling code when 430N/A * WM_DWMCOMPOSITIONCHANGED event is received 430N/A * Returns true if dwm composition is enabled, false if it is not applicable 430N/A * (if the OS is not Vista) or dwm composition is disabled. 430N/A // cheaper to check than whether it's vista or not 1066N/A "IsDWMCompositionEnabled: error %x when detecting"\
1066N/A "IsDWMCompositionEnabled: no DwmIsCompositionEnabled() "\
1066N/A "in dwmapi.dll or dwmapi.dll cannot be loaded");
0N/A * Class: sun_awt_Win32GraphicsEnvironment 0N/A * Method: initDisplay 0N/A // This method needs to be called prior to any display-related activity 0N/A * Class: sun_awt_Win32GraphicsEnvironment 0N/A * Method: getNumScreens 0N/A * Class: sun_awt_Win32GraphicsEnvironment 0N/A * Method: getDefaultScreen 1686N/A * Class: sun_awt_Win32FontManager 0N/A * Method: registerFontWithPlatform 1686N/A * Class: sun_awt_Win32FontManagerEnvironment 0N/A * Method: deRegisterFontWithPlatform 0N/A * This method intended for future use. 0N/A //lookup for encoding ID, EUDC only supported in 0N/A //codepage 932, 936, 949, 950 (and unicode) 3354N/A // On Windows 7, at least for me, it shows up in Cp1252 if 3354N/A // I create a custom font. Might as well support that as it makes 0N/A L
"SystemDefaultEUDCFont",
0N/A //if the fontPath includes %SystemRoot% 0N/A //else to see if it only inludes "EUDC.TTE" 0N/A * Class: sun_awt_Win32GraphicsEnvironment 0N/A * Method: getXResolution 0N/A * Class: sun_awt_Win32GraphicsEnvironment 0N/A * Method: getYResolution 430N/A * Class: sun_awt_Win32GraphicsEnvironment