Expand description
Bounded composition of native shaping and outlines into positioned contours.
Structs§
- Text
Contour - Ordered contour points preserving the outline callback’s closing edge.
- Text
Contour Error - Fail-closed text contour error.
- Text
Contour Output - Positioned contours plus the final run advance in caller coordinates.
- Text
Contour Request - One raw text run before alignment, markup, mirroring, or rotation.
- Text
Contour Session - One validated font face, shaped and outlined unhinted, reusable for every run of plain text in it: the font buffer is checked against its declared identity (SHA-256, face, variations) once, when the session is built, not once per run. Each run’s input must name the same identity.
Enums§
- Text
Contour Error Kind - Stable failure categories for native contour composition.
Constants§
- OUTLINE_
FACE_ SCALER - Outline layout profile (the one KiCad’s renderer uses): the truncated
16 * 64 * 1.4outline face size, in face units per em. Outlines are flattened and hinted on this grid; the requested em scales it to caller units. Any source’s size convention (KiCad’s 1.4 em per text size) is applied by that source’s adapter before a request reaches the realizer. - SUBSCRIPT_
FACE_ SCALER - Outline layout profile: rounded subscript/superscript face size,
round(1433 * 0.64). - SUBSCRIPT_
SUPERSCRIPT_ SIZE_ RATIO - Outline layout profile: subscript/superscript glyph size ratio (KiCad
outline_font.h). - SUBSCRIPT_
VERTICAL_ OFFSET_ RATIO - Outline layout profile: subscript baseline offset as a fraction of the styled face size.
- SUPERSCRIPT_
VERTICAL_ OFFSET_ RATIO - Outline layout profile: superscript baseline offset as a fraction of the styled face size.
- TEXT_
BEZIER_ ERROR - Outline layout profile: default curve error in outline-face coordinate units.
Functions§
- shape_
text_ contours_ a0 - Shape and place one plain text run using one reusable outline face.
- shape_
text_ contours_ hinted_ a0 - Shape and place one plain text run using KiCad-compatible embedded hinting.