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

📄 osdttf.h

📁 MiniWinOuterSM MiniWinOuterSM
💻 H
字号:
#ifndef __OSD_TTF_H__
#define __OSD_TTF_H__
#include"OSDFont.h"
#include"ft2build.h"
#include"include\freetype\freetype.h"
#include"include\freetype\ftcache.h"

#define _GBK_SUPPORT
#include "PrMem.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

#define NEWFTMGR 1
//<type>-<name>-<style>-<width>-<height>-<charset1[,charset2]> 
typedef struct _FT2_FACEID{
	char*fname;//len==0时表示文件名,其他值表示内存流的字库所在地址
	unsigned int len;//len=0表示字库为文件,其他值表示内存流的长度
	short width,height;//width==0表示矢量可放缩的字库,其他表示固定大小的字库如BDF,PCF等
	char*name;
	char*charsets;//该字库所支持的字符集合
	struct _FT2_FACEID*next;
}FT2_FACEID;
typedef struct{
    FT_Face face;
    FT_Size     size;
    int         rotation;
    FT_Vector   pos;
	FT_Matrix matrix;
	int         max_width;
    int         ave_width;
    int         height;
    int         ascent;
    int         descent;
    FT_Glyph    glyph;
    FT_Bool     use_kerning;
//    FT_UInt     cur_index;
//	FT_UInt		cur_advance;
    FT_UInt     prev_index;
	FTC_ImageTypeRec imagedesc;
	FT_UInt charmapIndex;
	FT2_FACEID*faceid;
}FT2INFO;//字体数据 

//int InitTTFFonts(void);
//void TermTTFFonts(void);

#endif  

⌨️ 快捷键说明

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