Table of Contents

Struct LoadTrueTypeFontFromFile

Namespace
BSGameLib.Game.Fonts
Assembly
BSGameLib.Game.dll

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

FileName string

The path of the font file.

Size int

The size the glyphs are rendered at.

Bold bool

Whether the font is bold. The glyphs are emboldened from the one face.

Italic bool

Whether 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

bool

FileName

The path of the font file.

public string FileName { get; init; }

Property Value

string

Italic

Whether the font is italic. The glyphs are slanted from the one face.

public bool Italic { get; init; }

Property Value

bool

Size

The size the glyphs are rendered at.

public int Size { get; init; }

Property Value

int