Footprint Text Box contents appearing in incorrect position when placed in PCB Layout after changing font
Description
When the font has been changed, the PCB Layout Editor is not displaying Text Box contents for footprints in the correct location. The contents of a footprint's text box are expected to be positioned inside the boundary of the text box.
FOOTPRINT EDITOR: *note that the text with "Arial" font and "Broadway" font are in the correct location.
PCB LAYOUT EDITOR: *The footprint is placed on the PCB. The text box containing the Kicad Font is centered inside the boundary box. The text boxes containing different fonts are located elsewhere on the PCB Layout.
3D VIEWER: The 3d viewer is rendering the text in the correct location.
Steps to reproduce
- Create a footprint in a new library.
- Add a text box, add some text, and change the font to something other than the default KiCad Font.
- Place the footprint on a board.
*You will see that the text of the footprint's text box is not inside of the text box.
Example Project Files
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 7.0.1, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.83.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Mar 11 2023 03:41:46
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.83.1-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
Edited by Jay Shoemaker