Table of Contents

ShxGlyph

from OpenCAD2D import ShxGlyph

class ShxGlyph(System.Object) ยท ShxGlyph in the .NET reference

A letter of an SHX font drawn by its pen: the strokes it inks, each a polyline of x, y pairs in the font's units, its arcs cut into chords of at most 11.25 degrees, and how far it moves the pen along the baseline for the next letter.

Properties and fields

Advance

.NET

@property
def Advance(self) -> float

Gets how far the letter moves the pen along the baseline, in the font's units: 6 for the A of txt.shx.

Strokes

.NET

@property
def Strokes(self) -> System.Collections.Generic.IReadOnlyList[System.Array[float]]

Gets the strokes, each a polyline of x, y pairs in the font's units from the letter's start on the baseline; empty for a space.