C# Class FSO.Client.UI.Framework.Font

Combines multiple vector fonts into a single font to better support px font sizes
Mostra file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
BaselineOffset float
CapsHeight int
UnderlinePosition int
UnderlineWidth int
WinAscent int
WinDescent int
XHeight int

Public Methods

Method Description
AddSize ( int pxSize, SpriteFont font ) : void
ComputeMetrics ( ) : void
Font ( ) : System
GetNearest ( int pxSize ) : FontEntry

Method Details

AddSize() public method

public AddSize ( int pxSize, SpriteFont font ) : void
pxSize int
font Microsoft.Xna.Framework.Graphics.SpriteFont
return void

ComputeMetrics() public method

public ComputeMetrics ( ) : void
return void

Font() public method

public Font ( ) : System
return System

GetNearest() public method

public GetNearest ( int pxSize ) : FontEntry
pxSize int
return FontEntry

Property Details

BaselineOffset public_oe property

public float BaselineOffset
return float

CapsHeight public_oe property

public int CapsHeight
return int

UnderlinePosition public_oe property

public int UnderlinePosition
return int

UnderlineWidth public_oe property

public int UnderlineWidth
return int

WinAscent public_oe property

Default metrics for Sim font
public int WinAscent
return int

WinDescent public_oe property

public int WinDescent
return int

XHeight public_oe property

public int XHeight
return int