Commit Graph

4 Commits

Author SHA1 Message Date
Seth Hillbrand 5364eeb718 Fix PDF plotting of text containing tab characters
The PDF plotter's renderWord function now properly handles tab characters
within text. Previously, tabs were passed to HarfBuzz or the stroke font
encoder which would render them as zero-width or small-width glyphs,
causing text alignment issues.

The fix splits text at tab boundaries and calculates proper tab stop
positions using the same algorithm as the font rendering code (TAB_WIDTH
= 4 * 0.6 font units), advancing the cursor to the next tab stop for
each tab character encountered.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22606
2026-01-09 18:09:47 -08:00
Seth Hillbrand ba988ccbb1 Generalize the PDF qa test 2025-09-20 11:34:18 -07:00
Seth Hillbrand a6e285af95 Properly use utilities to find font
Local builds are all relative but CI builds need to set data resources
locations
2025-09-20 07:43:42 -07:00
Seth Hillbrand 753afc7f37 ADDED: Plot uses the KiCad font, embedded in PDF
Creates a Type-3 representation of our stroke font, embeds it in the PDF
and then causes text to be represented in that font.

This prevents the need for over-stroking and keeps our PDFs searchable
and accessible
2025-09-17 09:05:15 -07:00