C# Класс QuickFont.QFontData

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CharSetMapping QFontGlyph>.Dictionary
KerningPairs int>.Dictionary
Pages QuickFont.TexturePage[]
dropShadow QFont
maxGlyphHeight int
meanGlyphWidth float
naturallyMonospaced bool
scaleDueToTransformToViewport float

Открытые методы

Метод Описание
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

Описание методов

CalculateMaxHeight() публичный метод

public CalculateMaxHeight ( ) : void
Результат void

CalculateMeanWidth() публичный метод

public CalculateMeanWidth ( ) : void
Результат void

Deserialize() публичный метод

public Deserialize ( List input, int &pageCount, char &charSet ) : void
input List
pageCount int
charSet char
Результат void

Dispose() публичный метод

public Dispose ( ) : void
Результат void

GetKerningPairCorrection() публичный метод

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
Результат int

GetMonoSpaceWidth() публичный метод

public GetMonoSpaceWidth ( QFontRenderOptions options ) : float
options QFontRenderOptions
Результат float

IsMonospacingActive() публичный метод

public IsMonospacingActive ( QFontRenderOptions options ) : bool
options QFontRenderOptions
Результат bool

Serialize() публичный метод

public Serialize ( ) : List
Результат List

Описание свойств

CharSetMapping публичное свойство

Mapping from character to glyph index
public Dictionary CharSetMapping
Результат QFontGlyph>.Dictionary

KerningPairs публичное свойство

Mapping from a pair of characters to a pixel offset
public Dictionary KerningPairs
Результат int>.Dictionary

Pages публичное свойство

List of texture pages
public TexturePage[],QuickFont Pages
Результат QuickFont.TexturePage[]

dropShadow публичное свойство

Null if no dropShadow is available
public QFont,QuickFont dropShadow
Результат QFont

maxGlyphHeight публичное свойство

The maximum glyph height
public int maxGlyphHeight
Результат int

meanGlyphWidth публичное свойство

The average glyph width
public float meanGlyphWidth
Результат float

naturallyMonospaced публичное свойство

Whether the original font (from ttf) was detected to be monospaced
public bool naturallyMonospaced
Результат bool

scaleDueToTransformToViewport публичное свойство

The font scaling due to the font being transformed to the current viewport for consistent pixel-perfect size across any resolution
public float scaleDueToTransformToViewport
Результат float