Knockout Attribute on text associated with a footprint isn't honored when Gerbers or SVGs are generated.
Description
When editing text that is associated with a footprint (i.e. Reference Number, Value, etc.) and the 'knockout' attribute is chosen, PCBNew will show the graphic correctly, and the 3D viewer will show the attribute as well. However, when the text is plotted or exported, the knockout attribute is ignored. I've verified this with Gerber and SVG output. Further, when I exported a VRML file and imported it into blender, it seemed as though no knockout attributes were applied to all text, not just text related to footprints.
Regardless of all that I've just said, I still appreciate all the work that has been put into this software. Thanks!!!
Steps to reproduce
- Create a new project
- Open Schematic and insert a component with a footprint (Or just add footprints to a new layout directly)
- Edit the reference number and select the knockout attribute.
- Press OK and you will see the knockout attribute applied to the reference number
- open the 3D Viewer, and the reference number will have the knockout attribute applied as well.
- Export a Gerber or SVG of the Silkscreen layer. When opened, the reference number does not have the knockout attribute applied to it.
KiCad Version
Application: KiCad 3D Viewer x86_64 on x86_64
Version: (7.0.0-0), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.3.1
FontConfig 2.14.0
libcurl/7.79.1 SecureTransport (LibreSSL/3.3.6) zlib/1.2.11 nghttp2/1.45.1
Platform: macOS Monterey Version 12.4 (Build 21F79), 64 bit, Little endian, wxMac
Build Info:
Date: Feb 12 2023 11:39:44
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.3
Curl: 7.77.0
ngspice: 38
Compiler: Clang 13.0.0 with C++ ABI 1002
Build settings:
KICAD_SPICE=ON
Also, it happens on my Windows 11 Laptop as well.
Application: KiCad x64 on x64
Version: (7.0.0), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.83.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22000), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Feb 12 2023 01:35:19
wxWidgets: 3.2.1 (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