Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by renegadex (Beadle)
on Jul 14, 2008 at 01:12 UTC ( #697368=note: print w/ replies, xml ) Need Help??


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
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://697368]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2014-10-30 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (206 votes), past polls