?? hangul.cpp
字號:
/*****************************************************************************\
* Copyright (c), Future Entertainment World / Seoul, Republic of Korea *
* All Rights Reserved. *
* *
* This document contains proprietary and confidential information. No *
* parts of this document or the computer program it embodies may be in *
* any way copied, duplicated, reproduced, translated into a different *
* programming language, or distributed to any person, company, or *
* corporation without the prior written consent of Future Entertainment World *
\*****************************************************************************/
#include "StdAfx.h"
#include <Windows.h> // ^^^^ 0126
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include "Dragon.h"
#include <Ddraw.h>
#include "tOOL.H"
#include "Music.h"
#define __HANGUL_H__
#include "hangul.h"
#define HBSIZE 32 // 茄臂 茄 臂磊俊 鞘夸茄 官撈飄 薦
#define NTYPES1 8 // 檬己狼 國薦
#define NTYPES2 4 // 吝己狼 國薦
#define NTYPES3 4 // 輛己狼 國薦
#define HANGUL_SIZE 16
#define ENGLISH_SIZE 8
#define Y_SIZE 16
int NHangulColor;
HDC DDText_dc;
int Cliping_sx, Cliping_ex, Cliping_sy, Cliping_ey;
static BYTE BaAscFont[ 96 ][ 16 ];
static BYTE BaHanFont1[ NTYPES1 ][ 19 ][ HBSIZE ];
static BYTE BaHanFont2[ NTYPES2 ][ 21 ][ HBSIZE ];
static BYTE BaHanFont3[ NTYPES3 ][ 27 ][ HBSIZE ];
HFONT __HFontDial[10];
HRGN MainHrgn;
HFONT hFontOld;
HRGN hGrnOld;
static char *h_DestBuf;
static int HangulFontType = 2;
static int HangulAlign;
/* ΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑ
竊薦疙 : LoadHnagulEnglishFont
牢 磊 : char *caHangulFileName
char *caEngFileName
府畔藹 : 0 = 角菩, 1 = 己傍
汲 疙 : 茄臂苞 康鞏俊 秦寸竅綽 迄飄甫 拳老俊輯 佬絹柯促.
ΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑΑ*/
// 031110 YGI
int LoadHangulEnglishFont( char *caHangulFileName, char *caEngFileName )
{
EndFont();
/*
FILE *fp;
int i;
// 茄臂 拳老闌 坷鍬
fp = fopen( caHangulFileName, "rb" );
// 檬己闌 佬絹甸烙
for( i = 0; i < 8; i++ ) {
fseek( fp, 32, SEEK_CUR );
fread( (void *)BaHanFont1[ i ], 19 * 32, 1, fp );
}
// 吝己闌 佬絹甸烙
for( i = 0; i < 4; i++ ) {
fseek( fp, 32, SEEK_CUR );
fread( (void *)BaHanFont2[ i ], 21 * 32, 1, fp );
}
// 輛己闌 佬絹甸烙
for( i = 0; i < 4; i++ ) {
fseek( fp, 32, SEEK_CUR );
fread( (void *)BaHanFont3[ i ], 27 * 32, 1, fp );
}
fclose( fp );
// 康鞏 迄飄甫 佬絹甸烙
fp = fopen( caEngFileName, "rb" );
fread( (void *)BaAscFont, 16, 96, fp );
fclose( fp );
*/
//////////////////////////////////////////////////////////////////////////////010727 lms
#ifdef CHINA_LOCALIZING_//010528 lms 促憊絹 迄飄 利儈
char *DR_FONT = "宋體";//010527 lms 吝憊絹 迄飄
#endif
#if defined (TAIWAN_LOCALIZING_) || defined (HONGKONG_LOCALIZING_)
char *DR_FONT = "燦
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -