Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: TextureFont_DrawTextScaled Bug with Newlines  (Read 534 times)
sybixsus
Customers
Community Member
*****
Posts: 1094


WWW
« on: September 23, 2007, 07:21:26 AM »

There's a bug with TextureFont_DrawTextScaled when the text you draw has more than one line ( IE: includes a /n newline character. )

The text is scaled correctly, but the gap between lines does not scale. This means that the text actually takes up much more room vertically than TextureFont_GetTextSize reports, which means you can't draw backgrounds to match the text you're writing there.

Here are pictures which demonstrate the bug.

First a piece of text which is drawn with DrawTextScaled but with a scale of 1.0 so no actual scaling is performed. It's perfect.



Now here is the exact same piece of text drawn at almost half the scale. Notice the huge gap between the lines ( relatively speaking. ) The gap between the lines is the same as it was in the first picture, because the gap between lines has not been scaled with the text.



Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #1 on: September 23, 2007, 08:20:31 AM »

Fixed thanks !
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
sybixsus
Customers
Community Member
*****
Posts: 1094


WWW
« Reply #2 on: September 23, 2007, 10:13:56 PM »

Yep, the new release has indeed fixed this problem. Thanks for the quick solution!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks