TextStudio3DContourSet
public sealed class TextStudio3DContourSetCanonical immutable closed contours. Empty geometry is valid and retains its advance; a missing glyph is represented by null at the provider boundary.
Methods
Section titled “Methods”
WithAdvanceWidth(float)
Section titled “WithAdvanceWidth(float)”public TextStudio3DContourSet WithAdvanceWidth(float advanceWidth)Shares immutable geometry while replacing occurrence-specific typographic advance.
Parameters
| Name | Type |
|---|---|
advanceWidth |
System.Single |
Returns
TextStudio.ThreeD.TextStudio3DContourSet
CopyFrom(ReadOnlySpan, ReadOnlySpan, ReadOnlySpan, float, in ContourErrorPolicy)
Section titled “CopyFrom(ReadOnlySpan, ReadOnlySpan, ReadOnlySpan, float, in ContourErrorPolicy)”public static TextStudio3DContourSet CopyFrom(ReadOnlySpan<ContourVertex> vertices, ReadOnlySpan<ContourLoopRange> loops, ReadOnlySpan<ContourSourceSegment> sources, float advanceWidth, in ContourErrorPolicy errorPolicy)Copies all caller buffers. Subsequent changes to any input cannot affect the published set.
Parameters
| Name | Type |
|---|---|
vertices |
System.ReadOnlySpan{TextStudio.ThreeD.ContourVertex} |
loops |
System.ReadOnlySpan{TextStudio.ThreeD.ContourLoopRange} |
sources |
System.ReadOnlySpan{TextStudio.ThreeD.ContourSourceSegment} |
advanceWidth |
System.Single |
errorPolicy |
TextStudio.ThreeD.ContourErrorPolicy |
Returns
TextStudio.ThreeD.TextStudio3DContourSet
Empty(float, in ContourErrorPolicy)
Section titled “Empty(float, in ContourErrorPolicy)”public static TextStudio3DContourSet Empty(float advanceWidth, in ContourErrorPolicy errorPolicy)Creates an empty contour set while retaining its advance width and declared error policy.
Parameters
| Name | Type |
|---|---|
advanceWidth |
System.Single |
errorPolicy |
TextStudio.ThreeD.ContourErrorPolicy |
Returns
TextStudio.ThreeD.TextStudio3DContourSet
GetLoopVertices(int)
Section titled “GetLoopVertices(int)”public ReadOnlySpan<ContourVertex> GetLoopVertices(int loopIndex)Returns a read-only view of the vertices in the specified closed loop.
Parameters
| Name | Type |
|---|---|
loopIndex |
System.Int32 |
Returns
System.ReadOnlySpan{TextStudio.ThreeD.ContourVertex}
Transform(Matrix4x4, float)
Section titled “Transform(Matrix4x4, float)”public TextStudio3DContourSet Transform(Matrix4x4 matrix, float transformedAdvanceWidth)Applies a nonsingular planar affine map, transforms source curves and directed tangents, and restores canonical winding after a reflection. The caller supplies typographic advance explicitly because arbitrary rotations/shears do not define an advance-width convention.
Parameters
| Name | Type |
|---|---|
matrix |
UnityEngine.Matrix4x4 |
transformedAdvanceWidth |
System.Single |
Returns
TextStudio.ThreeD.TextStudio3DContourSet
Properties
Section titled “Properties”
Vertices
Section titled “Vertices”public ReadOnlySpan<ContourVertex> Vertices { get; }Returns
System.ReadOnlySpan{TextStudio.ThreeD.ContourVertex}
public ReadOnlySpan<ContourLoopRange> Loops { get; }Returns
System.ReadOnlySpan{TextStudio.ThreeD.ContourLoopRange}
Sources
Section titled “Sources”public ReadOnlySpan<ContourSourceSegment> Sources { get; }Returns
System.ReadOnlySpan{TextStudio.ThreeD.ContourSourceSegment}
AdvanceWidth
Section titled “AdvanceWidth”public float AdvanceWidth { get; }Returns
System.Single
Bounds
Section titled “Bounds”public Bounds Bounds { get; }Returns
UnityEngine.Bounds
ErrorPolicy
Section titled “ErrorPolicy”public ContourErrorPolicy ErrorPolicy { get; }Returns
TextStudio.ThreeD.ContourErrorPolicy
IsEmpty
Section titled “IsEmpty”public bool IsEmpty { get; }Returns
System.Boolean