Modifier

Partager via


SKTypeface.FromStream Method

Definition

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