Table of Contents

Class Font

Namespace
GHIElectronics.Endpoint.Drawing
Assembly
GHIElectronics.Endpoint.Drawing.dll
public sealed class Font : MarshalByRefObject, IDisposable
Inheritance
Font
Implements
Inherited Members

Constructors

Font()

public Font()

Font(byte[])

public Font(byte[] data)

Parameters

data byte[]

Font(byte[], int, int)

public Font(byte[] data, int offset, int count)

Parameters

data byte[]
offset int
count int

Font(int)

public Font(int size)

Parameters

size int

Properties

Height

public int Height { get; }

Property Value

int

SkFont

public SKFont SkFont { get; }

Property Value

SKFont

Unit

public GraphicsUnit Unit { get; }

Property Value

GraphicsUnit

Methods

ComputeExtent(string, out int, out int)

public void ComputeExtent(string text, out int width, out int height)

Parameters

text string
width int
height int

ComputeTextInRect(string, out int, out int)

public void ComputeTextInRect(string text, out int renderWidth, out int renderHeight)

Parameters

text string
renderWidth int
renderHeight int

ComputeTextInRect(string, out int, out int, int)

public void ComputeTextInRect(string text, out int renderWidth, out int renderHeight, int availableWidth)

Parameters

text string
renderWidth int
renderHeight int
availableWidth int

CountCharactersInWidth(string, int, int, ref int, bool, ref string, ref int)

public void CountCharactersInWidth(string text, int maxChars, int width, ref int totWidth, bool fWordWrap, ref string strNext, ref int numChars)

Parameters

text string
maxChars int
width int
totWidth int
fWordWrap bool
strNext string
numChars int

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~Font()

protected ~Font()