フォントとテキスト_動的テキストタグ - hsk/swfspec_ja GitHub Wiki

動的テキストタグ

DefineEditText

フィールド コメント
Header RECORDHEADER タグタイプ = 37.
CharacterID UI16 ID for this dynamic textcharacter.
Bounds RECT Rectangle that completelyencloses the text field.
HasText UB[1] 0 = text field has no default text.1 = text field initially displays thestring specified by InitialText
WordWrap UB[1] 0 = text will not wrap and willscroll sideways1 = text will wrap automaticallywhen the end of line is reached.
Multiline UB[1] 0 = text field is one line only.1 = text field is multi-line andscrollable.
Password UB[1] 0 = characters are displayed astyped.1 = all characters are displayedas an asterisk.
ReadOnly UB[1] 0 = text editing is enabled.1 = text editing is disabled.
HasTextColor UB[1] 0 = use default color.1 = use specified color(TextColor).
HasMaxLength UB[1] 0 = length of text is unlimited.1 = maximum length of string isspecified by MaxLength.
HasFont UB[1] 0 = use default font.1 = use specified font (FontID)and height (FontHeight). (Can’tbe true if HasFontClass is true).
HasFontClass UB[1] 0 = no fontClass, 1 = fontClassand Height specified for thistext. (can't be true if HasFont istrue). Supported in Flash Player9.0.45.0 and later.
AutoSize UB[1] 0 = fixed size.1 = sizes to content (SWF 6 orlater only).
HasLayout UB[1] Layout information provided.
NoSelect UB[1] Enables or disables interactivetext selection.
Border UB[1] Causes a border to be drawnaround the text field.
WasStatic UB[1] 0 = Authored as dynamic text1 = Authored as static text
HTML UB[1] 0 = plaintext content.1 = HTML content (seefollowing).
UseOutlines UB[1] 0 = use device font.1 = use glyph font.
FontID If HasFont, UI16 ID of font to use.
FontClass If HasFontClass, STRING Class name of font to be loadedfrom another SWF and used forthis text.
FontHeight If HasFont, UI16 Height of font in twips.
TextColor If HasTextColor, RGBA Color of text.
MaxLength If HasMaxLength, UI16 Text is restricted to this length.
Align If HasLayout, UI8 0 = Left1 = Right2 = Center3 = Justify
LeftMargin If HasLayout, UI16 Left margin in twips.
RightMargin If HasLayout, UI16 Right margin in twips.
Indent If HasLayout, UI16 Indent in twips.
Leading If HasLayout, SI16 Leading in twips (verticaldistance between bottom ofdescender of one line and top ofascender of the next).
VariableName STRING Name of the variable where thecontents of the text field arestored. May be qualified withdot syntax or slash syntax fornon-global variables.
InitialText If HasText STRING Text that is initially displayed.

CSMTextSettings

フィールド コメント
Header RECORDHEADER タグタイプ = 74.
TextID UI16 ID for the DefineText,DefineText2, orDefineEditText to which thistag applies.
UseFlashType UB[2] 0 = use normal renderer.1 = use advanced textrendering engine.
GridFit UB[3] 0 = Do not use grid fitting.AlignmentZones and LCDsub-pixel information will notbe used.1 = Pixel grid fit. Onlysupported for left-aligneddynamic text. This settingprovides the ultimate inadvanced anti-aliased textreadability, with crisp lettersaligned to pixels.2 = Sub-pixel grid fit. Alignletters to the 1/3 pixel usedby LCD monitors. Can alsoimprove quality for CRToutput.
Reserved UB[3] Must be 0.
Thickness F32 The thickness attribute forthe associated text field. Setto 0.0 to use the default(anti-aliasing table) value.
Sharpness F32 The sharpness attribute forthe associated text field. Setto 0.0 to use the default(anti-aliasing table) value.
Reserved UI8 Must be 0.

DefineFont4

フィールド コメント
Header RECORDHEADER タグタイプ = 91
FontID UI16 ID for this font character.
FontFlagsReserved UB[5] Reserved bit fields.
FontFlagsHasFontData UB[1] Font is embedded. Font tag includesSFNT font data block.
FontFlagsItalic UB[1] Italic font
FontFlagsBold UB[1] Bold font
FontName STRING Name of the font.
FontData FONTDATA[0 or 1] When present, this is an OpenTypeCFF font, as defined in the OpenTypespecification at www.microsoft.com/typography/otspec. The followingtables must be present: ‘CFF ’, ‘cmap’,‘head’, ‘maxp’, ‘OS/2’, ‘post’, andeither (a) ‘hhea’ and ‘hmtx’, or (b)‘vhea’, ‘vmtx’, and ‘VORG’. The ‘cmap’table must include one of the followingkinds of Unicode ‘cmap’ subtables: (0,4), (0, 3), (3, 10), (3, 1), or (3, 0)[notation: (platform ID, platformspecificencoding ID)]. Tables such as‘GSUB’, ‘GPOS’, ‘GDEF’, and ‘BASE’may also be present.Only present for embedded fonts.

移動