SKPaint.GetHorizontalTextIntercepts Method

Definition

Overloads

GetHorizontalTextIntercepts(IntPtr, Int32, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetHorizontalTextIntercepts(IntPtr, IntPtr, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetHorizontalTextIntercepts(Byte[], Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetHorizontalTextIntercepts(String, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

GetHorizontalTextIntercepts(IntPtr, Int32, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (IntPtr text, int length, float[] xpositions, float y, 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.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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.

GetHorizontalTextIntercepts(IntPtr, IntPtr, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (IntPtr text, IntPtr length, float[] xpositions, float y, 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.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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.

GetHorizontalTextIntercepts(Byte[], Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (byte[] text, float[] xpositions, float y, float upperBounds, float lowerBounds);

Parameters

text
Byte[]

The text encoded using the encoding specified in TextEncoding format.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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.

GetHorizontalTextIntercepts(String, Single[], Single, Single, Single)

Calculate the intersections of two parallel lines and the glyphs.

public float[] GetHorizontalTextIntercepts (string text, float[] xpositions, float y, float upperBounds, float lowerBounds);

Parameters

text
String

The text.

xpositions
Single[]

The positions of each glyph in the horizontal direction.

y
Single

The positions of all the glyphs along the y-coordinate.

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