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


in reply to Re: 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

wow! thanks man, thats a really nice way of doing it :) tnx again!maybe i could ask some math guru on techniques for solving the "9" position hehehe.
  • Comment on Re^2: Changing the Font of a specific character in a Text in a Canvas

Replies are listed 'Best First'.
Re^3: Changing the Font of a specific character in a Text in a Canvas
by zentara (Archbishop) on Jul 14, 2008 at 12:43 UTC
    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