enum FontFlags { FF_Italic = 0x0001, FF_Bold = 0x0002, FF_BoldItalic = FF_Bold|FF_Italic, FF_Style_Mask = FF_BoldItalic, FF_DeviceFont = 0x0010, FF_NativeHinting = 0x0020, FF_NotResolved = 0x0040, FF_RasterOnly = 0x0080, FF_CodePage_Mask = 0x0300, FF_CodePage_Unicode = 0x0000, FF_CodePage_Ansi = 0x0100, FF_CodePage_ShiftJis = 0x0200, FF_CreateFont_Mask = FF_Style_Mask|FF_CodePage_Mask, FF_GlyphShapesStripped = 0x1000, FF_HasLayout = 0x2000, FF_WideCodes = 0x4000, FF_PixelAligned = 0x8000, FF_DistanceFieldAlpha = 0x10000 };
An enumeration listing the flags for specifying the fonts.
Members |
Description |
FF_Italic = 0x0001 |
General font style flags. |
FF_Bold = 0x0002 |
General font style flags. |
FF_BoldItalic = FF_Bold|FF_Italic |
General font style flags. |
FF_Style_Mask = FF_BoldItalic |
This flag bits is used for matching a font. This mask is used for both font searching and hashing. |
FF_DeviceFont = 0x0010 |
This flag is set if the font is being requested from a system device; this can be set by the text field if it prefers system glyphs over the SWF-embedded glyphs. |
FF_NativeHinting = 0x0020 |
Native Hinting can be used with the external font providers, such as Win32 or FreeType. This flag is set in the external font constructor. |
FF_NotResolved = 0x0040 |
The font should be resolved through FontLib or FontProvider. |
FF_RasterOnly = 0x0080 |
The font has raster glyphs only. |
FF_CodePage_Mask = 0x0300 |
Code page bits. Fonts supported right now are all Unicode, but SWFs before version 6 allowed code pages. |
FF_CodePage_Unicode = 0x0000 |
Code page bits. Fonts supported right now are all Unicode, but SWFs before version 6 allowed code pages. |
FF_CodePage_Ansi = 0x0100 |
Code page bits. Fonts supported right now are all Unicode, but SWFs before version 6 allowed code pages. |
FF_CodePage_ShiftJis = 0x0200 |
Code page bits. Fonts supported right now are all Unicode, but SWFs before version 6 allowed code pages. |
FF_CreateFont_Mask = FF_Style_Mask|FF_CodePage_Mask |
Mask passed to FontProvider::CreateFont. |
FF_GlyphShapesStripped = 0x1000 |
Flash - specific attributes. |
FF_HasLayout = 0x2000 |
Flash - specific attributes. |
FF_WideCodes = 0x4000 |
Flash - specific attributes. |
FF_PixelAligned = 0x8000 |
Flag bit set to 1 to indicate bitmap fonts. |
FF_DistanceFieldAlpha = 0x10000 |
Texture fonts. |
Render_Font.h