SKTypeface.FromData(SKData, Int32) Method

Definition

Returns a new typeface given data.

public static SkiaSharp.SKTypeface FromData (SkiaSharp.SKData data, int index = 0);

Parameters

data
SKData

The input data.

index
Int32

The font face index.

Returns

SKTypeface

Returns a new typeface, or null if the file does not exist, or is not a valid font file.

Applies to