Class DynamicFontsHelper
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
fontStreamStreamZero-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
fontPathstringPath 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
fileNamestringThe file name to check.
Returns
Remarks
Correct font file name assumes that the file name has TTF or OTF extension.