Text background size


I’d like to put some background for some text, but as shown on the screen above, the frame (created with the 'text_bg" keyword on a DirectFrame) has a strange margin at the top that makes it look really ugly.

How can I make this margin equal (give or take a pixel) at the top and bottom or maybe just move the card?

Possible it’s due to the used font. Try to check it with the default Panda’s font.
Anyway you can get control on your text:
myFrame.component(‘text0’).textNode.setCardAsMargin(left, right, top, bottom)
To see a list of components: print myFrame.components()