C# Class QuickFont.QFontData

Inheritance: IDisposable
Afficher le fichier Open project: Pireax/neovim.cs Class Usage Examples

Méthodes publiques

Свойство Type Description
CharSetMapping QFontGlyph>.Dictionary
KerningPairs int>.Dictionary
Pages QuickFont.TexturePage[]
dropShadow QFont
maxGlyphHeight int
meanGlyphWidth float
naturallyMonospaced bool
scaleDueToTransformToViewport float

Méthodes publiques

Méthode 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 méthode

public CalculateMaxHeight ( ) : void
Résultat void

CalculateMeanWidth() public méthode

public CalculateMeanWidth ( ) : void
Résultat void

Deserialize() public méthode

public Deserialize ( List input, int &pageCount, char &charSet ) : void
input List
pageCount int
charSet char
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetKerningPairCorrection() public méthode

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
Résultat int

GetMonoSpaceWidth() public méthode

public GetMonoSpaceWidth ( QFontRenderOptions options ) : float
options QFontRenderOptions
Résultat float

IsMonospacingActive() public méthode

public IsMonospacingActive ( QFontRenderOptions options ) : bool
options QFontRenderOptions
Résultat bool

Serialize() public méthode

public Serialize ( ) : List
Résultat List

Property Details

CharSetMapping public_oe property

Mapping from character to glyph index
public Dictionary CharSetMapping
Résultat QFontGlyph>.Dictionary

KerningPairs public_oe property

Mapping from a pair of characters to a pixel offset
public Dictionary KerningPairs
Résultat int>.Dictionary

Pages public_oe property

List of texture pages
public TexturePage[],QuickFont Pages
Résultat QuickFont.TexturePage[]

dropShadow public_oe property

Null if no dropShadow is available
public QFont,QuickFont dropShadow
Résultat QFont

maxGlyphHeight public_oe property

The maximum glyph height
public int maxGlyphHeight
Résultat int

meanGlyphWidth public_oe property

The average glyph width
public float meanGlyphWidth
Résultat float

naturallyMonospaced public_oe property

Whether the original font (from ttf) was detected to be monospaced
public bool naturallyMonospaced
Résultat 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
Résultat float