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

Combines multiple vector fonts into a single font to better support px font sizes
Show 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 property

public float BaselineOffset
return float

CapsHeight public property

public int CapsHeight
return int

UnderlinePosition public property

public int UnderlinePosition
return int

UnderlineWidth public property

public int UnderlineWidth
return int

WinAscent public property

Default metrics for Sim font
public int WinAscent
return int

WinDescent public property

public int WinDescent
return int

XHeight public property

public int XHeight
return int