Table of Contents

Struct GlyphOutlineSegment

Namespace
DocWright.Fonts
Assembly
DocWright.Fonts.dll

One segment of a glyph contour: a line, a quadratic Bézier or a cubic Bézier ending at EndPoint. The start point is the previous segment's end point (or the contour's StartPoint for the first segment).

public readonly struct GlyphOutlineSegment : IEquatable<GlyphOutlineSegment>
Implements
Inherited Members

Properties

ControlPoint1

Gets the first control point. Meaningful for Quadratic and Cubic; default otherwise.

ControlPoint2

Gets the second control point. Meaningful for Cubic only; default otherwise.

EndPoint

Gets the end point of the segment.

Kind

Gets the curve kind.

Methods

Cubic(GlyphOutlinePoint, GlyphOutlinePoint, GlyphOutlinePoint)

Creates a cubic Bézier segment.

Equals(GlyphOutlineSegment)
Equals(object?)
GetHashCode()
Line(GlyphOutlinePoint)

Creates a straight-line segment.

Quadratic(GlyphOutlinePoint, GlyphOutlinePoint)

Creates a quadratic Bézier segment.

ToString()

Formats the segment for diagnostics.

Operators

operator ==(GlyphOutlineSegment, GlyphOutlineSegment)

Determines equality.

operator !=(GlyphOutlineSegment, GlyphOutlineSegment)

Determines inequality.