IAssetLoader.GetOrLoadFontAsync(string, int, CancellationToken) Method
Definition
Namespace: Brine2D.Assets
Returns a cached font, loading it on first request. The \(path, size\) pair is the cache key; the same file at different sizes is two separate entries.
C#
System.Threading.Tasks.Task<Brine2D.Rendering.IFont> GetOrLoadFontAsync(string path, int size, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
path System.String
size System.Int32
cancellationToken System.Threading.CancellationToken