C# Class FFXIVAPP.Hooker.Engine.DXFont

Inheritance: IDisposable
Show file Open project: Icehunter/ffxivapp-hooker Class Usage Examples

Public Methods

Method Description
DXFont ( SharpDX.Direct3D11.Device device, DeviceContext deviceContext ) : System
Dispose ( ) : void
GetCharHeight ( ) : int
GetCharRect ( char c ) : SharpDX.Rectangle
GetFontSheetSRV ( ) : SharpDX.Direct3D11.ShaderResourceView
GetSpaceWidth ( ) : int
Initialize ( string FontName, float FontSize, FontStyle FontStyle, bool AntiAliased ) : bool

Private Methods

Method Description
BuildFontSheetBitmap ( Font font, Graphics charGraphics, Bitmap charBitmap, Graphics fontSheetGraphics ) : void
BuildFontSheetTexture ( Bitmap fontSheetBitmap ) : bool
GetCharMaxX ( Bitmap charBitmap ) : int
GetCharMinX ( Bitmap charBitmap ) : int
MeasureChars ( Font font, Graphics charGraphics ) : void

Method Details

DXFont() public method

public DXFont ( SharpDX.Direct3D11.Device device, DeviceContext deviceContext ) : System
device SharpDX.Direct3D11.Device
deviceContext DeviceContext
return System

Dispose() public method

public Dispose ( ) : void
return void

GetCharHeight() public method

public GetCharHeight ( ) : int
return int

GetCharRect() public method

public GetCharRect ( char c ) : SharpDX.Rectangle
c char
return SharpDX.Rectangle

GetFontSheetSRV() public method

public GetFontSheetSRV ( ) : SharpDX.Direct3D11.ShaderResourceView
return SharpDX.Direct3D11.ShaderResourceView

GetSpaceWidth() public method

public GetSpaceWidth ( ) : int
return int

Initialize() public method

public Initialize ( string FontName, float FontSize, FontStyle FontStyle, bool AntiAliased ) : bool
FontName string
FontSize float
FontStyle FontStyle
AntiAliased bool
return bool