SKFontManager.CreateTypeface 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
CreateTypeface(SKData, Int32) |
Creates a new SKTypeface from the specified SKData. |
CreateTypeface(SKStreamAsset, Int32) |
Creates a new SKTypeface from the specified stream. |
CreateTypeface(Stream, Int32) |
Creates a new SKTypeface from the specified stream. |
CreateTypeface(String, Int32) |
Creates a new SKTypeface from the specified file path. |
CreateTypeface(SKData, Int32)
Creates a new SKTypeface from the specified SKData.
public SkiaSharp.SKTypeface CreateTypeface (SkiaSharp.SKData data, int index = 0);
Parameters
- data
- SKData
The data to read the typeface from.
- index
- Int32
The TTC index.
Returns
Returns the new SKTypeface, or null
if the data is not recognized.
Applies to
CreateTypeface(SKStreamAsset, Int32)
Creates a new SKTypeface from the specified stream.
public SkiaSharp.SKTypeface CreateTypeface (SkiaSharp.SKStreamAsset stream, int index = 0);
Parameters
- stream
- SKStreamAsset
The stream to read the typeface from.
- index
- Int32
The TTC index.
Returns
Returns the new SKTypeface, or null
if the stream is not recognized.
Applies to
CreateTypeface(Stream, Int32)
Creates a new SKTypeface from the specified stream.
public SkiaSharp.SKTypeface CreateTypeface (System.IO.Stream stream, int index = 0);
Parameters
- stream
- Stream
The stream to read the typeface from.
- index
- Int32
The TTC index.
Returns
Returns the new SKTypeface, or null
if the stream is not recognized.
Applies to
CreateTypeface(String, Int32)
Creates a new SKTypeface from the specified file path.
public SkiaSharp.SKTypeface CreateTypeface (string path, int index = 0);
Parameters
- path
- String
The path to the typeface.
- index
- Int32
The TTC index.
Returns
Returns the new SKTypeface, or null
if the file does not exist or the contents are not recognized.