C# Class SWFProcessing.SWFModeller.Text.SWFFont

Represents a font and all its glyphs. It implements ICharacter but doesn't seem very characterey. In the SWF though, font IDs share the same space as character IDs which makes a kinda sense being that they both live in the IDE library.
Inheritance: ICharacter
显示文件 Open project: WeeWorld/Swiffotron Class Usage Examples

Public Methods

Method Description
GetLayout ( char c ) : GlyphLayout
SWFFont ( System.Language language, string name, bool isBold, bool isItalic, bool isSmall, int numGlyphs ) : System

Initializes an instance of the Font class with basic font information.

ToString ( ) : string

Private Methods

Method Description
AddGlyph ( char codepoint, IShape shape ) : void
AddLayout ( char codepoint, GlyphLayout glyphLayout ) : void
AddPixelAlignment ( char c, PixelAlignment alignment ) : void
CanMergeWith ( SWFFont font ) : bool
GetGlyphShape ( char c ) : IShape
GetPixelAligment ( char c ) : PixelAlignment
HasGlyph ( char c ) : bool
ToStringModelView ( int nest, StringBuilder sb ) : void

Method Details

GetLayout() public method

public GetLayout ( char c ) : GlyphLayout
c char
return GlyphLayout

SWFFont() public method

Initializes an instance of the Font class with basic font information.
public SWFFont ( System.Language language, string name, bool isBold, bool isItalic, bool isSmall, int numGlyphs ) : System
language System.Language The language of the font (Not encoding)
name string The font name
isBold bool Is this a bold font?
isItalic bool Is this an italic font?
isSmall bool
numGlyphs int How many glyphs do you expect to have? Not important /// except for a little efficiency saving. It's fine to pass 0.
return System

ToString() public method

public ToString ( ) : string
return string