mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 06:04:12 +02:00
1db025ceae
A static text's x/y in an .elmt file are the baseline-left of the text. A program writing an element (a pinout generator, dxf2elmt) then has to measure the text with QET's font metrics to right-align or centre it. With the opt-in anchor="alignment", x is the left edge, centre or right edge selected by Halignment; y stays the baseline. The box is the text without the document margin, as ElementPictureFactory draws it, so the editor and the folio agree. Rotation pivots on x/y as before. The element editor reads it and writes it back for the texts that had it; it does not add it to other texts. Files without anchor draw and save as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>