Table of Contents

Class DynamicFontsHelper

Namespace
Icy.Rendering.Fonts
Assembly
IcyUI.dll

Represents a helper class that gets font details from the vector font files such as TTF, OTF and TTC.

public class DynamicFontsHelper
Inheritance
DynamicFontsHelper
Inherited Members
Extension Methods

Methods

GetFontInfo(Stream)

Gets the font info for the specified font file stream.

public static FontInfo[] GetFontInfo(Stream fontStream)

Parameters

fontStream Stream

Zero-placed TTF/OTF font file stream.

Returns

FontInfo[]

Information about the font.

GetFontInfo(string)

Gets the font info for a file specified by fontPath.

public static FontInfo[] GetFontInfo(string fontPath)

Parameters

fontPath string

Path to a font file to read info from.

Returns

FontInfo[]

Information about the font.

IsFontFileName(string?)

Checks if the file name is a correct dynamic font file name.

public static bool IsFontFileName(string? fileName)

Parameters

fileName string

The file name to check.

Returns

bool

true if the file name is a font file name; otherwise false.

Remarks

Correct font file name assumes that the file name has TTF or OTF extension.