⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 font.h

📁 dtelent是开源的开发项目
💻 H
字号:
/* font.h
 * Copyright (c) 1997 David Cole
 *
 * Manage font dialog and font related .INI file settings.
 */
#ifndef __font_h
#define __font_h

/* font.c uses internally */
typedef struct CharacterSet {
    char *csName;
    unsigned char csCode;
} CharacterSet;

typedef struct FontDesc {
    char fdName [LF_FACESIZE];
    int  fdSize;
    int  fdWidth;
    unsigned char fdCharSet;
} FontDesc;

/* We will have two FontDesc:
   the "requested" (selected by user)
   and the "real" (selected by Windows)
   2004.10.24: The OEM font is the third */

#define DT_FONT_REQUESTED 0
#define DT_FONT_REAL      1
#define DT_FONT_OEM       2 
FontDesc *fontGet (int which); /* Return a FontDesc */

/* Create fonts from "Requested" FontDesc,
   return HFONTs, TEXTMETRIC and fill FontDesc REAL and OEM */
void fontCreate (HWND hwnd, TEXTMETRIC *ptm, HFONT *hfmain, HFONT *hfaux);

/* Display the Font dialog */
void showFontDialog(HINSTANCE instance, HWND wnd);
/* Load the font settings from the .INI file */
void fontGetProfile(void);
/* Save the font settings to the .INI file */
void fontSaveProfile(void);

/* From wingdi.h ... */
#define ANSI_CHARSET            0
#define DEFAULT_CHARSET         1
#define SYMBOL_CHARSET          2
#define SHIFTJIS_CHARSET        128
#define HANGEUL_CHARSET         129
#define GB2312_CHARSET          134
#define CHINESEBIG5_CHARSET     136
#define OEM_CHARSET             255
#define JOHAB_CHARSET           130
#define HEBREW_CHARSET          177
#define ARABIC_CHARSET          178
#define GREEK_CHARSET           161
#define TURKISH_CHARSET         162
#define THAI_CHARSET            222
#define EASTEUROPE_CHARSET      238
#define RUSSIAN_CHARSET         204
#define MAC_CHARSET             77
#define BALTIC_CHARSET          186

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -