font_def.h.svn-base

来自「A Flash Player with ActionScript support」· SVN-BASE 代码 · 共 63 行

SVN-BASE
63
字号
#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 + =
减小字号Ctrl + -
显示快捷键?