Struct LoadTrueTypeFontFromFile
Loads a TrueType or OpenType font from a file.
public readonly record struct LoadTrueTypeFontFromFile : IFontParameters, IEquatable<LoadTrueTypeFontFromFile>
- Implements
- Inherited Members
Constructors
LoadTrueTypeFontFromFile(string, int, bool, bool)
Loads a TrueType or OpenType font from a file.
public LoadTrueTypeFontFromFile(string FileName, int Size, bool Bold = false, bool Italic = false)
Parameters
FileNamestringThe path of the font file.
SizeintThe size the glyphs are rendered at.
BoldboolWhether the font is bold. The glyphs are emboldened from the one face.
ItalicboolWhether the font is italic. The glyphs are slanted from the one face.
Properties
Bold
Whether the font is bold. The glyphs are emboldened from the one face.
public bool Bold { get; init; }
Property Value
FileName
The path of the font file.
public string FileName { get; init; }
Property Value
Italic
Whether the font is italic. The glyphs are slanted from the one face.
public bool Italic { get; init; }
Property Value
Size
The size the glyphs are rendered at.
public int Size { get; init; }