Expand description
Bounded KiCad multiline, tabbed, and markup outline-text layout.
Structs§
- Plain
Text Layout Output - Plain baseline-local ink and source-owned placement for compact consumers. Contours are a transient metric bridge; callers need not normalize or emit them. Markup, tabs, multiple lines and synthetic faces use the block API.
- Text
Block Layout Output - Positioned block contours and bounded construction accounting.
- Text
Block Layout Request - One multiline text request including fake bold/italic synthesis flags.
Constants§
- KICAD_
OUTLINE_ EM_ PER_ SIZE - KiCad draws an outline (TrueType) text’s em at 1.4 times its authored
size (
OUTLINE_FONT’s size compensation, so its capitals stand about as tall as the stroke font’s). The shared realizer takes the em; this is the one place KiCad’s size convention meets it. - KICAD_
TEXT_ INTERLINE_ FACTOR - KiCad’s baseline-to-baseline multiplier for outline text.
- KICAD_
TEXT_ OVERBAR_ HEIGHT_ RATIO - KiCad’s overbar baseline offset as a fraction of the character height.
- KICAD_
TEXT_ TAB_ WIDTH_ FACTOR - KiCad’s four-character tab stop using an average character width of 0.6.
Functions§
- layout_
plain_ text_ hinted_ a0 - Reuse the native hinted plain-run metrics and block alignment, without an adapter-private copy of baseline, mirror or rotation conventions.
- layout_
text_ block_ hinted_ a0 - Render multiline/tabbed/markup text with one reusable shaping and hinted face.