Table of Contents

Method IsClose

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

IsClose(string, float, FontStyle)

Determines whether the current font matches the specified name, style, and size within a close tolerance.

public virtual bool IsClose(string name, float sizeInPoints, FontStyle style)

Parameters

name string

The name of the font to compare.

sizeInPoints float

The size of the font, in points, to compare.

style FontStyle

The style of the font to compare.

Returns

bool

true if the current font's name and style exactly match the specified values and size is within a close tolerance; otherwise, false.