Letter P doesn't show up in some labels
Closed this issue · 5 comments
Using Kicad 6.0.1 Kibuzzard 1.0.0 stable, not sure if this is even a Kibuzzard bug but the letter P doesn't show up in board view, while in this arrangement "2P" or "3P". The 3D viewer does show all labels correctly
There are also some error logs:
--- Logging error ---
Traceback (most recent call last):
File "C:\Program Files\KiCad\6.0\bin\Lib\logging\__init__.py", line 1086, in emit
stream.write(msg + self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "C:\Users\user\OneDrive\Documents\KiCad\6.0\3rdparty\plugins\com_github_gregdavill_KiBuzzard\plugin.py", line 100, in Run
if dlg.ShowModal() == wx.ID_OK:
File "C:\Users\user\OneDrive\Documents\KiCad\6.0\3rdparty\plugins\com_github_gregdavill_KiBuzzard\dialog\dialog.py", line 144, in labelEditOnText
self.ReGeneratePreview()
File "C:\Users\user\OneDrive\Documents\KiCad\6.0\3rdparty\plugins\com_github_gregdavill_KiBuzzard\dialog\dialog.py", line 193, in ReGeneratePreview
self.polys = self.buzzard.generate(self.m_MultiLineText.GetValue())
File "C:\Users\user\OneDrive\Documents\KiCad\6.0\3rdparty\plugins\com_github_gregdavill_KiBuzzard\buzzard\buzzard.py", line 51, in generate
self.svgText = self.renderLabel(inString)
File "C:\Users\user\OneDrive\Documents\KiCad\6.0\3rdparty\plugins\com_github_gregdavill_KiBuzzard\buzzard\buzzard.py", line 71, in renderLabel
t.set_font(self.fontName)
File "C:\Users\user\OneDrive\Documents\KiCad\6.0\3rdparty\plugins\com_github_gregdavill_KiBuzzard\buzzard\..\deps\svg2mod\svg2mod\svg\svg.py", line 1063, in set_font
self.font_file = self.find_font_file()
File "C:\Users\user\OneDrive\Documents\KiCad\6.0\3rdparty\plugins\com_github_gregdavill_KiBuzzard\buzzard\..\deps\svg2mod\svg2mod\svg\svg.py", line 1198, in find_font_file
logging.warning("Font \"{}\" does not natively support style \"{}\" using \"{}\" instead".format(
Message: 'Font "UbuntuMono-B" does not natively support style "Regular" using "Path" instead'
Arguments: ()
This is Interesting. If you open up the good and bad labels in the footprint editor, do they look different?
svg2mod is a tool embedded within KiBuzzard which will attempt to insert a cut through overlapping polygons like the letter P here.
You could also try installing 1.1.0 from the PCM. It's listed as a "Testing" release, because it's got a fair few changes, but it features an update to svg2mod that might have fixed this issue.
I've also now tried 1.1.0 and it looks like the problem is still present. Is this something that you are able to replicate on your end?
I'm using KiCad 6.0.2, on Ubuntu.
With 1.1.0 from the PCM I've not been able to replicate your issue. I can see my labels are generating a very similar looking polygon, here it's just not filled.
I was mistaken about the svg2mod updates, they're not included in the 1.1.0 release. The updates to svg2mod place the "cuts" vertical, which might help, if KiCad is for some reason detecting an overlapping polygon, thus not rendering the inner cutouts.
To rule this out can you try out the current git version? I've created a PCM package here:
- Uninstall your current KiBuzzard in the PCM
- Use "install from file", to install this version: KiBuzzard-1.2.0-pcm.zip