The rectangular outline size of the text cannot be obtained

image
Also, I don’t know which way to know if the text is of type knockout
KiCad Pcbnew Python Scripting: pcbnew.EDA_TEXT Class Reference
The method name could not be found in the plug-in interface

I will not be the one to answer your question anyway…but my reaction to your post is ???

I think that it will help your cause if you include some more details as to what you have, what you are doing, and what you are trying to do.

IsKnockout() from BOARD_ITEM class
but you can’t get effective shape or margins or anything regarding actual geometry because those methods are not properly wrapped in the current api.
If you need this make sure to raise an issue on gitlab so this is included in new api.



A plugin was developed to add a modified head and tail to the knockout text, but it does not accurately obtain the length and width of the text, and it is not possible to increase the offset of a fixed value, and the number of fonts cannot be increased, and the offset is different for different font sizes

The IsKnockOut() method is useful, thanks for the help, I don’t know if the GetEffectiveTextShape method can get the coordinates of this rectangular vertex

It cannot, I’ve tried. It does not take knockout into account in current implementation.

无法获取文本的矩形轮廓大小 (#19388) ·问题 ·KiCad / KiCad 源代码 / kicad ·极狐GitLab

???
I am not sure what to make of this but I suppose that I am not the only one…

Rendering bacon is not a problem but I don’t use my laptop for that.