src/windows/native/sun/windows/awt_Win32GraphicsEnv.cpp
Print this page
rev 1379 : [mq]: fontmanager.patch
@@ -23,10 +23,11 @@
* have any questions.
*/
#include <awt.h>
#include <sun_awt_Win32GraphicsEnvironment.h>
+#include <sun_awt_Win32FontManager.h>
#include "awt_Canvas.h"
#include "awt_Win32GraphicsDevice.h"
#include "Devices.h"
#include "WindowsFlags.h"
#include "DllUtil.h"
@@ -171,16 +172,16 @@
{
return AwtWin32GraphicsDevice::GetDefaultDeviceIndex();
}
/*
- * Class: sun_awt_Win32GraphicsEnvironment
+ * Class: sun_awt_Win32FontManager
* Method: registerFontWithPlatform
* Signature: (Ljava/lang/String;)V
*/
JNIEXPORT void JNICALL
-Java_sun_awt_Win32GraphicsEnvironment_registerFontWithPlatform(JNIEnv *env,
+Java_sun_awt_Win32FontManager_registerFontWithPlatform(JNIEnv *env,
jclass cl,
jstring fontName)
{
LPTSTR file = (LPTSTR)JNU_GetStringPlatformChars(env, fontName, JNI_FALSE);
if (file) {
@@ -189,18 +190,18 @@
}
}
/*
- * Class: sun_awt_Win32GraphicsEnvironment
+ * Class: sun_awt_Win32FontManagerEnvironment
* Method: deRegisterFontWithPlatform
* Signature: (Ljava/lang/String;)V
*
* This method intended for future use.
*/
JNIEXPORT void JNICALL
-Java_sun_awt_Win32GraphicsEnvironment_deRegisterFontWithPlatform(JNIEnv *env,
+Java_sun_awt_Win32FontManager_deRegisterFontWithPlatform(JNIEnv *env,
jclass cl,
jstring fontName)
{
LPTSTR file = (LPTSTR)JNU_GetStringPlatformChars(env, fontName, JNI_FALSE);
if (file) {
@@ -221,11 +222,11 @@
#define LANGID_ZH_MO 0x1404
#define LANGID_KO_KR 0x0412
JNIEXPORT jstring JNICALL
-Java_sun_awt_Win32GraphicsEnvironment_getEUDCFontFile(JNIEnv *env, jclass cl) {
+Java_sun_awt_Win32FontManager_getEUDCFontFile(JNIEnv *env, jclass cl) {
int rc;
HKEY key;
DWORD type;
WCHAR fontPathBuf[MAX_PATH + 1];
unsigned long fontPathLen = MAX_PATH + 1;