How to set extrusion depth for font?

Hi

:question: Is there a way to define the extrusion depth for the font rendering modes RMExtruded and RMSolid?

Thanks
/Chris

You can set the Y scale of the resulting TextNode to have whatever thickness you desire.

David

David -

:blush: I’m probably just to blind to see it, but TextNode’s setTextScale takes only one parameter… how can I set the Y scale independently?

Thanks
/Chris

Just scale the entire node using Panda’s normal node-scale operations, e.g.:

np = NodePath(textNode)
np.setScale(1, 5, 1)

David

That did the trick! :smiley:

Thank you very much for your help David.
/Chris