Skip to content

AssetManifest.Font(string, int) Method

Definition

Namespace: Brine2D.Assets

Declares a font asset. Size is part of the identity: Font("ui.ttf", 16) and Font("ui.ttf", 32) are two independent cached entries.

protected static Brine2D.Assets.AssetRef<Brine2D.Rendering.IFont> Font(string path, int size);

Parameters

path System.String

size System.Int32

Returns

Brine2D.Assets.AssetRef<IFont>