You could use the option “fill with background color” in the rectangle properties, these should normally draw the fill behind all text-elements.
That is the option I used, assuming we’re talking about the same thing:
I click on the rectangle border
Right click and choose properties
choose the “Fill With” option under “Fill Style”
Click the color swatch
Choose ‘defined colors’
and select light yellow.
Have I found a bug?
Note, in case it matters: I have multiple pins positioned atop one another. I read somewhere that this is one way to support multiple pins in the footprint that all have the same function. Might that be part of the problem? …and at the risk of going off on a tangent, is there a better technique?
I’ll have a look at the actual footprint file & see if I can spot anything anomalous.
Yes, background fill is the recommended way to go.
Development hours is a scarce and precious resource for the KiCad project, and many features are competing for improvement. Mf_Ibfeew already posted a link to https://gitlab.com/kicad/code/kicad/-/issues/11934 but it’s just one of 1300 open issues. For the moment the “background fill” works good enough for the majority of use cases, and that makes this a very low priority item.