Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Text scaling with zoom factor (Read 2852 times)
craigsimons
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Oct 17th, 2005
Text scaling with zoom factor
Oct 18th, 2005 at 4:20am
Print Post  
How can I control how the text scales when changing the zoom factor? In the samples, changing the zoom factor will make the text small so that it fits the box properly. Somehow I must have changed a default setting and now the text does not get larger or smaller when I change the zoom factor...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Text scaling with zoom factor
Reply #1 - Oct 18th, 2005 at 6:58am
Print Post  
That depends on the font's Unit property. If Unit == World, the text scales fine when the ZoomFactor changes. If Unit is some fixed measure such as Millimeter or Point, the text won't scale. I believe the Font's Unit property is read only, you can set it only with the font's constructor.
  
Back to top
 
IP Logged
 
craigsimons
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Oct 17th, 2005
Re: Text scaling with zoom factor
Reply #2 - Oct 18th, 2005 at 1:43pm
Print Post  
Ah... that's it. Creating each new box and setting box.font = new font("tahoma",12,graphicsUnit.world) allows the text to be scaled. By the way, I've only just purchased this control a few days ago, but I must say it is a wonderful product and the support so far has been fantastic. Keep up the good work!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint