Edit

SKTypeface.Clone Method

Definition

Overloads

Name Description
Clone(SKFontArguments)

Creates a new typeface derived from this typeface with the specified font arguments.

Clone(Int32)

Creates a new typeface derived from this typeface using the specified color palette index.

Clone(ReadOnlySpan<SKFontVariationPositionCoordinate>)

Creates a new typeface derived from this typeface with the specified variation design position.

Clone(SKFontArguments)

Creates a new typeface derived from this typeface with the specified font arguments.

public SkiaSharp.SKTypeface Clone(SkiaSharp.SKFontArguments args);

Parameters

args
SKFontArguments

The font arguments specifying palette, variation settings, and other parameters to apply to the clone.

Returns

A new SKTypeface based on this typeface with the specified font arguments applied.

Applies to

Clone(Int32)

Creates a new typeface derived from this typeface using the specified color palette index.

public SkiaSharp.SKTypeface Clone(int paletteIndex);

Parameters

paletteIndex
Int32

The zero-based index of the color palette to use in the cloned typeface.

Returns

A new SKTypeface based on this typeface with the specified color palette.

Applies to

Clone(ReadOnlySpan<SKFontVariationPositionCoordinate>)

Creates a new typeface derived from this typeface with the specified variation design position.

public SkiaSharp.SKTypeface Clone(ReadOnlySpan<SkiaSharp.SKFontVariationPositionCoordinate> position);

Parameters

position
ReadOnlySpan<SKFontVariationPositionCoordinate>

A read-only span of axis-tag/value pairs defining the variation design position.

Returns

A new SKTypeface based on this typeface with the specified variation design position applied.

Applies to