mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Added Chinese language support (thx to Noword from TBS)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2424 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#ifndef __WINFONT_
|
||||
#define __WINFONT_
|
||||
#include <windows.h>
|
||||
|
||||
void InitWinFonts( );
|
||||
void ShutdownWinFonts( );
|
||||
|
||||
INT32 CreateWinFont( INT32 iHeight, INT32 iWidth, INT32 iEscapement,
|
||||
INT32 iWeight, BOOLEAN fItalic, BOOLEAN fUnderline, BOOLEAN fStrikeOut, STR16 szFontName, INT32 iCharSet );
|
||||
INT32 CreateWinFont( LOGFONT &logfont );
|
||||
void DeleteWinFont( INT32 iFont );
|
||||
|
||||
void SetWinFontBackColor( INT32 iFont, COLORVAL *pColor );
|
||||
@@ -17,8 +17,31 @@ INT16 WinFontStringPixLength( STR16 string, INT32 iFont );
|
||||
INT16 GetWinFontHeight( STR16 string, INT32 iFont );
|
||||
UINT32 WinFont_mprintf( INT32 iFont, INT32 x, INT32 y, STR16 pFontString, ...);
|
||||
|
||||
BOOLEAN DoesWinFontExistOnSystem( STR16 pTypeFaceName, INT32 iCharSet );
|
||||
//if you cahnge this enum, you must change FontInfo struct in WinFont.cpp too.
|
||||
enum {
|
||||
WIN_LARGEFONT1 = 0,
|
||||
WIN_SMALLFONT1,
|
||||
WIN_TINYFONT1,
|
||||
WIN_12POINTFONT1,
|
||||
WIN_COMPFONT,
|
||||
WIN_SMALLCOMPFONT,
|
||||
WIN_10POINTROMAN,
|
||||
WIN_12POINTROMAN,
|
||||
WIN_14POINTSANSSERIF,
|
||||
WIN_10POINTARIAL,
|
||||
WIN_14POINTARIAL,
|
||||
WIN_12POINTARIAL,
|
||||
WIN_BLOCKYFONT,
|
||||
WIN_BLOCKYFONT2,
|
||||
WIN_10POINTARIALBOLD,
|
||||
WIN_12POINTARIALFIXEDFONT,
|
||||
WIN_16POINTARIAL,
|
||||
WIN_BLOCKFONTNARROW,
|
||||
WIN_14POINTHUMANIST,
|
||||
WIN_HUGEFONT,
|
||||
WIN_LASTFONT
|
||||
};
|
||||
#define MAX_WINFONTMAP 25
|
||||
extern INT32 WinFontMap[MAX_WINFONTMAP];
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user