user648753
user648753

Reputation: 167

TextField padding

I'm working on this nametag designer project, and because the elements are later added to pdf, i need to know the EXACT placement on the tag.

TextField's are giving me some problems, cause the textfield "padding" changes when you change the fontsize.

enter image description here

I either need to remove the "padding" or get the x,y position of the text inside the TextField.

Leading test: enter image description here

Any ideas on this! Thanks!

Upvotes: 0

Views: 1171

Answers (1)

AtomicRobot
AtomicRobot

Reputation: 395

I'm not sure what "padding" you need, but you can get all offsets with this methods: getCharBoundaries(), getLineMetrics().

Upvotes: 2

Related Questions