C# Class QuickFont.QFontKerningConfiguration

ファイルを表示 Open project: Pireax/neovim.cs Class Usage Examples

Public Properties

Property Type Description
alphaEmptyPixelTolerance byte

Public Methods

Method Description
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.

Method Details

BatchSetCharacterKerningRule() public method

Sets all characters in the given string to the specified kerning rule.
public BatchSetCharacterKerningRule ( String chars, CharacterKerningRule rule ) : void
chars String
rule CharacterKerningRule
return void

GetCharacterKerningRule() public method

public GetCharacterKerningRule ( char c ) : CharacterKerningRule
c char
return CharacterKerningRule

GetOverridingCharacterKerningRuleForPair() public method

Given a pair of characters, this will return the overriding CharacterKerningRule.
public GetOverridingCharacterKerningRuleForPair ( String str ) : CharacterKerningRule
str String
return CharacterKerningRule

QFontKerningConfiguration() public method

public QFontKerningConfiguration ( ) : System
return System

SetCharacterKerningRule() public method

Sets the specified character kerning rule.
public SetCharacterKerningRule ( char c, CharacterKerningRule rule ) : void
c char
rule CharacterKerningRule
return void

Property Details

alphaEmptyPixelTolerance public_oe property

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
return byte