SKTypeface.FromStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromStream(Stream, Int32) |
Returns a new typeface given a stream. Ownership of the stream is transferred, so the caller must not reference it again. |
FromStream(SKStreamAsset, Int32) |
Returns a new typeface given a stream. Ownership of the stream is transferred, so the caller must not reference it again. |
FromStream(Stream, Int32)
Returns a new typeface given a stream. Ownership of the stream is transferred, so the caller must not reference it again.
public static SkiaSharp.SKTypeface FromStream (System.IO.Stream stream, int index = 0);
Parameters
- stream
- Stream
The input stream.
- index
- Int32
The font face index.
Returns
Returns a new typeface, or null
if the file does not exist, or is not a valid font file.
Applies to
FromStream(SKStreamAsset, Int32)
Returns a new typeface given a stream. Ownership of the stream is transferred, so the caller must not reference it again.
public static SkiaSharp.SKTypeface FromStream (SkiaSharp.SKStreamAsset stream, int index = 0);
Parameters
- stream
- SKStreamAsset
The input stream.
- index
- Int32
The font face index.
Returns
Returns a new typeface, or null
if the file does not exist, or is not a valid font file.
Applies to
SkiaSharp