Editar

Compartir a través de


SKPaint.GetPositionedTextIntercepts Method

Definition

Overloads

GetPositionedTextIntercepts(Byte[], SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetPositionedTextIntercepts(ReadOnlySpan<Byte>, ReadOnlySpan<SKPoint>, Single, Single)
GetPositionedTextIntercepts(ReadOnlySpan<Char>, ReadOnlySpan<SKPoint>, Single, Single)
GetPositionedTextIntercepts(String, SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetPositionedTextIntercepts(IntPtr, Int32, SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetPositionedTextIntercepts(IntPtr, IntPtr, SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetPositionedTextIntercepts(Byte[], SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetPositionedTextIntercepts (byte[] text, SkiaSharp.SKPoint[] positions, float upperBounds, float lowerBounds);

Parameters

text
Byte[]

The text encoded using the encoding specified in TextEncoding format.

positions
SKPoint[]

The positions of each glyph.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetPositionedTextIntercepts(ReadOnlySpan<Byte>, ReadOnlySpan<SKPoint>, Single, Single)

public float[] GetPositionedTextIntercepts (ReadOnlySpan<byte> text, ReadOnlySpan<SkiaSharp.SKPoint> positions, float upperBounds, float lowerBounds);

Parameters

positions
ReadOnlySpan<SKPoint>
upperBounds
Single
lowerBounds
Single

Returns

Single[]

Applies to

GetPositionedTextIntercepts(ReadOnlySpan<Char>, ReadOnlySpan<SKPoint>, Single, Single)

public float[] GetPositionedTextIntercepts (ReadOnlySpan<char> text, ReadOnlySpan<SkiaSharp.SKPoint> positions, float upperBounds, float lowerBounds);

Parameters

positions
ReadOnlySpan<SKPoint>
upperBounds
Single
lowerBounds
Single

Returns

Single[]

Applies to

GetPositionedTextIntercepts(String, SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetPositionedTextIntercepts (string text, SkiaSharp.SKPoint[] positions, float upperBounds, float lowerBounds);

Parameters

text
String

The text.

positions
SKPoint[]

The positions of each glyph.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetPositionedTextIntercepts(IntPtr, Int32, SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetPositionedTextIntercepts (IntPtr text, int length, SkiaSharp.SKPoint[] positions, float upperBounds, float lowerBounds);

Parameters

text
IntPtr

The text buffer encoded using the encoding specified in TextEncoding format.

length
Int32

The length of the text buffer.

positions
SKPoint[]

The positions of each glyph.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to

GetPositionedTextIntercepts(IntPtr, IntPtr, SKPoint[], Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetPositionedTextIntercepts (IntPtr text, IntPtr length, SkiaSharp.SKPoint[] positions, float upperBounds, float lowerBounds);

Parameters

text
IntPtr

The text buffer encoded using the encoding specified in TextEncoding format.

length
IntPtr

The length of the text buffer.

positions
SKPoint[]

The positions of each glyph.

upperBounds
Single

The upper line parallel to the advance.

lowerBounds
Single

The lower line parallel to the advance.

Returns

Single[]

Returns the intersections of two parallel lines and the glyphs.

Remarks

Uses TextEncoding to decode text, Typeface to get the font metrics, and TextSize, FakeBoldText and PathEffect to scale and modify the glyph paths.

Applies to