📄 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 + -