Struct LoadBMFontFromStream
Loads a BMFont from the text of a .fnt file read from a stream. Its page images are read from PageFolder, or from the working directory when it is null.
public readonly record struct LoadBMFontFromStream : IFontParameters, IEquatable<LoadBMFontFromStream>
- Implements
- Inherited Members
Constructors
LoadBMFontFromStream(string, Stream, string)
Loads a BMFont from the text of a .fnt file read from a stream. Its page images are read from PageFolder, or from the working directory when it is null.
public LoadBMFontFromStream(string FileName, Stream Stream, string PageFolder = null)
Parameters
FileNamestringThe name the font is known by, kept as its FileName. It need not be a path.
StreamStreamThe stream the
.fnttext is read from. The factory disposes it.PageFolderstringThe folder the page images are read from, or null to read them relative to the working directory.
Properties
FileName
The name the font is known by, kept as its FileName. It need not be a path.
public string FileName { get; init; }
Property Value
PageFolder
The folder the page images are read from, or null to read them relative to the working directory.
public string PageFolder { get; init; }
Property Value
Stream
The stream the .fnt text is read from. The factory disposes it.
public Stream Stream { get; init; }