http://www.perlmonks.org?node_id=697465


in reply to Re^2: Changing the Font of a specific character in a Text in a Canvas
in thread Changing the Font of a specific character in a Text in a Canvas

The problem with computing the 9, I believe, is that the actual character sits in an invisible box. If you could get all fonts to sit on the bottom of the box, they would line up and you could do an easy calculation to align them. BUT... the characters seem to sit in the middle of the box, and the box changes with font size. There are the anchor, and justify options, but I didn't play around with them long enough to see if they can line them up.

I'm not really a human, but I play one on earth CandyGram for Mongo
  • Comment on Re^3: Changing the Font of a specific character in a Text in a Canvas