SKTextBlobBuilder.AddHorizontalRun 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
AddHorizontalRun(SKPaint, Single, UInt16[], Single[], String, UInt32[], SKRect)
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, string text, uint[] clusters, SkiaSharp.SKRect bounds);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, string text, uint[] clusters, SkiaSharp.SKRect bounds);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- UInt16[]
The glyphs for this run.
- positions
- Single[]
The horizontal positions of each glyph.
- text
- String
The chacracter information for this run.
- clusters
- UInt32[]
The glyph's cluster information.
- bounds
- SKRect
The bounding box of the run, used when computing the blob bounds to avoid re-measuring.
- Attributes
Remarks
The number of positions, characters and clusters must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, UInt16[], Single[], Byte[], UInt32[], SKRect)
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, byte[] text, uint[] clusters, SkiaSharp.SKRect bounds);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, byte[] text, uint[] clusters, SkiaSharp.SKRect bounds);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- UInt16[]
The glyphs for this run.
- positions
- Single[]
The horizontal positions of each glyph.
- text
- Byte[]
The UTF-8 chacracter information for this run.
- clusters
- UInt32[]
The glyph's cluster information.
- bounds
- SKRect
The bounding box of the run, used when computing the blob bounds to avoid re-measuring.
- Attributes
Remarks
The number of positions, characters and clusters must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, ReadOnlySpan<UInt16>, ReadOnlySpan<Single>, ReadOnlySpan<Byte>, ReadOnlySpan<UInt32>, Nullable<SKRect>)
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions, ReadOnlySpan<byte> text, ReadOnlySpan<uint> clusters, SkiaSharp.SKRect? bounds);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions, ReadOnlySpan<byte> text, ReadOnlySpan<uint> clusters, SkiaSharp.SKRect? bounds);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- ReadOnlySpan<UInt16>
The glyphs for this run.
- positions
- ReadOnlySpan<Single>
The horizontal positions of each glyph.
- text
- ReadOnlySpan<Byte>
The UTF-8 chacracter information for this run.
- clusters
- ReadOnlySpan<UInt32>
The glyph's cluster information.
The bounding box of the run, used when computing the blob bounds to avoid re-measuring.
- Attributes
Remarks
The number of positions, characters and clusters must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, UInt16[], Single[], Byte[], UInt32[])
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, byte[] text, uint[] clusters);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, byte[] text, uint[] clusters);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- UInt16[]
The glyphs for this run.
- positions
- Single[]
The horizontal positions of each glyph.
- text
- Byte[]
The UTF-8 chacracter information for this run.
- clusters
- UInt32[]
The glyph's cluster information.
- Attributes
Remarks
The number of positions, characters and clusters must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, ReadOnlySpan<UInt16>, ReadOnlySpan<Single>, ReadOnlySpan<Byte>, ReadOnlySpan<UInt32>)
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions, ReadOnlySpan<byte> text, ReadOnlySpan<uint> clusters);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions, ReadOnlySpan<byte> text, ReadOnlySpan<uint> clusters);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- ReadOnlySpan<UInt16>
The glyphs for this run.
- positions
- ReadOnlySpan<Single>
The horizontal positions of each glyph.
- text
- ReadOnlySpan<Byte>
The chacracter information for this run.
- clusters
- ReadOnlySpan<UInt32>
The glyph's cluster information.
- Attributes
Remarks
The number of positions, characters and clusters must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, UInt16[], Single[], String, UInt32[])
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, string text, uint[] clusters);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, string text, uint[] clusters);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- UInt16[]
The glyphs for this run.
- positions
- Single[]
The horizontal positions of each glyph.
- text
- String
The chacracter information for this run.
- clusters
- UInt32[]
The glyph's cluster information.
- Attributes
Remarks
The number of positions, characters and clusters must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, ReadOnlySpan<UInt16>, ReadOnlySpan<Single>, Nullable<SKRect>)
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions, SkiaSharp.SKRect? bounds);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions, SkiaSharp.SKRect? bounds);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- ReadOnlySpan<UInt16>
The glyphs for this run.
- positions
- ReadOnlySpan<Single>
The horizontal positions of each glyph.
The bounding box of the run, used when computing the blob bounds to avoid re-measuring.
- Attributes
Remarks
The number of positions must be the same as the number of glyphs.
Applies to
AddHorizontalRun(ReadOnlySpan<UInt16>, SKFont, ReadOnlySpan<Single>, Single)
public void AddHorizontalRun (ReadOnlySpan<ushort> glyphs, SkiaSharp.SKFont font, ReadOnlySpan<float> positions, float y);
Parameters
- glyphs
- ReadOnlySpan<UInt16>
- font
- SKFont
- positions
- ReadOnlySpan<Single>
- y
- Single
Applies to
AddHorizontalRun(SKPaint, Single, UInt16[], Single[])
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- UInt16[]
The glyphs for this run.
- positions
- Single[]
The horizontal positions of each glyph.
- Attributes
Remarks
The number of positions must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, ReadOnlySpan<UInt16>, ReadOnlySpan<Single>)
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ReadOnlySpan<ushort> glyphs, ReadOnlySpan<float> positions);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- ReadOnlySpan<UInt16>
The glyphs for this run.
- positions
- ReadOnlySpan<Single>
The horizontal positions of each glyph.
- Attributes
Remarks
The number of positions must be the same as the number of glyphs.
Applies to
AddHorizontalRun(SKPaint, Single, UInt16[], Single[], SKRect)
Caution
Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.
Adds a new horizontally-positioned run to the builder.
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, SkiaSharp.SKRect bounds);
[System.Obsolete("Use AddHorizontalRun (ReadOnlySpan<ushort>, SKFont, ReadOnlySpan<float>, float) instead.")]
public void AddHorizontalRun (SkiaSharp.SKPaint font, float y, ushort[] glyphs, float[] positions, SkiaSharp.SKRect bounds);
Parameters
- font
- SKPaint
The font to be used for this run.
- y
- Single
The vertical offset within the blob.
- glyphs
- UInt16[]
The glyphs for this run.
- positions
- Single[]
The horizontal positions of each glyph.
- bounds
- SKRect
The bounding box of the run, used when computing the blob bounds to avoid re-measuring.
- Attributes
Remarks
The number of positions must be the same as the number of glyphs.
Applies to
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기