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

📄 cfont.h

📁 在ecos 下mingui 的移植开发
💻 H
字号:
//// $Id: cfont.h,v 1.1.1.1 2000/06/13 01:11:50 weiym Exp $//// cfont.h: the head file of Multiple Bitmap Fonts module.//// Copyright (C) 2000, Wei Yongming.// // Copyright (C) 1999, Liu Shuang, Hao Peng.//#ifndef GUI_CFONT_H	#define GUI_CFONT_H#ifdef _MULFONT#ifdef __cplusplusextern "C" {#endif  /* __cplusplus */// structure of devicefont  CFONTtypedef struct tagDEVICEFONT{    char FontName[10];    int FontHeight;    int FontWidth;    int CodeMethod;    int Volumns;	int AscLength;	int AscVol;    FILE* fpDevFont;    char FilePath[51];    struct tagDEVICEFONT* pDeviceFontNext;}DEVICEFONT;typedef DEVICEFONT* PDEVICEFONT;   ///// structure of logicfonttypedef struct tagLOGFONT{    int FontHeight;    int FontWidth;    char FontName[10];    PDEVICEFONT pDeviceFont;}LOGFONT;typedef LOGFONT *  PLOGFONT;extern PDEVICEFONT pDeviceFontHeader;#define DEVICEITEMNUM 8 //the item num of device font#define LOGITEMNUM   4#define READSTRMAXLEN 6#define DEVFILENUM    5#define LOGFONTLEN sizeof(LOGFONT)#define DEVICEFONTLEN sizeof(DEVICEFONT)/////////////////////////////////////////// declearation of functionBOOL InitFont ();void TerminateFont ();HLOGFONT CreateFont (char* FontName, int FonH, int FontW);HLOGFONT GUIAPI SelectFont (HDC hdc, HLOGFONT hLogFont);void GUIAPI DeleteFont (HDC hdc, HLOGFONT hLogFont);void GUIAPI FreeFontSpace ();int GUIAPI GetCharWidth (HDC hdc);int GUIAPI GetCCharWidth (HDC hdc);int GUIAPI GetCharHeight (HDC hdc);#ifdef __cplusplus}#endif  /* __cplusplus */#endif // _MULFONT#endif // GUI_CFONT_H

⌨️ 快捷键说明

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