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

📄 font_def.h.svn-base

📁 A Flash Player with ActionScript support. Write in C and C++. It have two part, one is Player and an
💻 SVN-BASE
字号:
#ifndef _FONTS_H_#define _FONTS_H_// 字体 FONT// ===============// 字体结构(DefineFont) 中包括 内嵌字体 和 系统字体 两种字体的信息.//// 其中 内嵌字体信息 主要包括每个字符(Glpyh) 的外轮廓(ShapeRecordP).// 系统字体信息 主要包括每个字符(Glpyh)的 Unicode 编码(Code),及对应的// 系统字体名称(FontNameP).// 渲染时使用 内嵌字体 还是 系统字体, 由 文字(TEXT) 来指定.struct KerningRecord {    struct KerningRecord*       NextP;    UI16                        FontKerningCode1;    UI16                        FontKerningCode2;    SI16                        FontKerningAdjustment;};struct GlyphShape {    struct ShapeRecord*		ShapeRecordP;    SI16                      	FontAdvance;    struct RECT                 FontBounds;    UI16			Code;};// XXX 覆盖 DefineFont,DefineFontInfo, DefineFontInfo2// DefintFont2// Font 不是 Character.struct  DefineFont {    UI8				CharacterType;//=CharFont    UI16			CharacterID;    UI8				FontID;    UI8				Flags;#define FontFlagsHasLayout	0x1<<7#define FontFlagsShiftJIS	0x1<<6#define FontFlagsSmallText	0x1<<5#define FontFlagsANSI		0x1<<4#define FontFlagsWideOffsets	0x1<<3#define FontFlagsWideCodes	0x1<<2#define FontFlagsItalic		0x1<<1#define FontFlagsBold		0x1<<0#define FontInfoFlagsSmallText	0x1<<5#define FontInfoFlagsShiftJIS	0x1<<4#define FontInfoFlagsANSI	0x1<<3#define FontInfoFlagsItalic	0x1<<2#define FontInfoFlagsBold	0x1<<1#define FontInfoFlagsWideCodes	0x1<<0    UI8				LanguageCode;    STRING             		FontNameP;		//接整块内存    SI16                        FontAscent;    SI16                        FontDescent;    SI16                        FontLeading;    UI16                        KerningCount;    struct KerningRecord*       KerningTableP;    UI16			NumGlyphs;    struct GlyphShape		GlyphShape[1];};#endif

⌨️ 快捷键说明

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