C# Class QuickFont.QFontData

Inheritance: IDisposable
显示文件 Open project: Pireax/neovim.cs Class Usage Examples

Public Properties

Property Type Description
CharSetMapping QFontGlyph>.Dictionary
KerningPairs int>.Dictionary
Pages QuickFont.TexturePage[]
dropShadow QFont
maxGlyphHeight int
meanGlyphWidth float
naturallyMonospaced bool
scaleDueToTransformToViewport float

Public Methods

Method Description
CalculateMaxHeight ( ) : void
CalculateMeanWidth ( ) : void
Deserialize ( List input, int &pageCount, char &charSet ) : void
Dispose ( ) : void
GetKerningPairCorrection ( int index, string text, TextNode textNode ) : int

Returns the kerning length correction for the character at the given index in the given string. Also, if the text is part of a textNode list, the nextNode is given so that the following node can be checked incase of two adjacent word nodes.

GetMonoSpaceWidth ( QFontRenderOptions options ) : float
IsMonospacingActive ( QFontRenderOptions options ) : bool
Serialize ( ) : List

Method Details

CalculateMaxHeight() public method

public CalculateMaxHeight ( ) : void
return void

CalculateMeanWidth() public method

public CalculateMeanWidth ( ) : void
return void

Deserialize() public method

public Deserialize ( List input, int &pageCount, char &charSet ) : void
input List
pageCount int
charSet char
return void

Dispose() public method

public Dispose ( ) : void
return void

GetKerningPairCorrection() public method

Returns the kerning length correction for the character at the given index in the given string. Also, if the text is part of a textNode list, the nextNode is given so that the following node can be checked incase of two adjacent word nodes.
public GetKerningPairCorrection ( int index, string text, TextNode textNode ) : int
index int
text string
textNode TextNode
return int

GetMonoSpaceWidth() public method

public GetMonoSpaceWidth ( QFontRenderOptions options ) : float
options QFontRenderOptions
return float

IsMonospacingActive() public method

public IsMonospacingActive ( QFontRenderOptions options ) : bool
options QFontRenderOptions
return bool

Serialize() public method

public Serialize ( ) : List
return List

Property Details

CharSetMapping public_oe property

Mapping from character to glyph index
public Dictionary CharSetMapping
return QFontGlyph>.Dictionary

KerningPairs public_oe property

Mapping from a pair of characters to a pixel offset
public Dictionary KerningPairs
return int>.Dictionary

Pages public_oe property

List of texture pages
public TexturePage[],QuickFont Pages
return QuickFont.TexturePage[]

dropShadow public_oe property

Null if no dropShadow is available
public QFont,QuickFont dropShadow
return QFont

maxGlyphHeight public_oe property

The maximum glyph height
public int maxGlyphHeight
return int

meanGlyphWidth public_oe property

The average glyph width
public float meanGlyphWidth
return float

naturallyMonospaced public_oe property

Whether the original font (from ttf) was detected to be monospaced
public bool naturallyMonospaced
return bool

scaleDueToTransformToViewport public_oe property

The font scaling due to the font being transformed to the current viewport for consistent pixel-perfect size across any resolution
public float scaleDueToTransformToViewport
return float