C# Класс QuickFont.QFontKerningConfiguration

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

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

Свойство Тип Описание
alphaEmptyPixelTolerance byte

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

Метод Описание
BatchSetCharacterKerningRule ( String chars, CharacterKerningRule rule ) : void

Sets all characters in the given string to the specified kerning rule.

GetCharacterKerningRule ( char c ) : CharacterKerningRule
GetOverridingCharacterKerningRuleForPair ( String str ) : CharacterKerningRule

Given a pair of characters, this will return the overriding CharacterKerningRule.

QFontKerningConfiguration ( ) : System
SetCharacterKerningRule ( char c, CharacterKerningRule rule ) : void

Sets the specified character kerning rule.

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

BatchSetCharacterKerningRule() публичный Метод

Sets all characters in the given string to the specified kerning rule.
public BatchSetCharacterKerningRule ( String chars, CharacterKerningRule rule ) : void
chars String
rule CharacterKerningRule
Результат void

GetCharacterKerningRule() публичный Метод

public GetCharacterKerningRule ( char c ) : CharacterKerningRule
c char
Результат CharacterKerningRule

GetOverridingCharacterKerningRuleForPair() публичный Метод

Given a pair of characters, this will return the overriding CharacterKerningRule.
public GetOverridingCharacterKerningRuleForPair ( String str ) : CharacterKerningRule
str String
Результат CharacterKerningRule

QFontKerningConfiguration() публичный Метод

public QFontKerningConfiguration ( ) : System
Результат System

SetCharacterKerningRule() публичный Метод

Sets the specified character kerning rule.
public SetCharacterKerningRule ( char c, CharacterKerningRule rule ) : void
c char
rule CharacterKerningRule
Результат void

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

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

When measuring the bounds of glyphs, and performing kerning calculations, this is the minimum alpha level that is necessray for a pixel to be considered non-empty. This should be set to a value on the range [0,255]
public byte alphaEmptyPixelTolerance
Результат byte