Skip to content

IFontLoader.LoadFont(string, int) Method

Definition

Namespace: Brine2D.Rendering

Loads a font from file synchronously.

Brine2D.Rendering.IFont LoadFont(string path, int size);

Parameters

path System.String

Path to the font file (.ttf, .otf).

size System.Int32

Font size in points.

Returns

IFont
Loaded font.