About Store Forum Documentation Contact



Post Reply 
TextStyle in TextLine
Author Message
MrPi Offline
Member

Post: #1
TextStyle in TextLine
When I'm changing the text style used in TextLine elements, the text displayed is really, really tiny, almost not visible.

Gui.ts_textline = MyTextStyle;

The scale in MytextStyle is properly set. What could be the problem?
Is that the only way to change the textstyle used for the text in TextLine elements?
11-26-2013 04:02 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: TextStyle in TextLine
Hi,
It is possible that the final size is proportional to the TextLine height
something like : textline.rect().h()*text_style.scale.y
try settings text style scale = 1
11-30-2013 07:44 AM
Find all posts by this user Quote this message in a reply
MrPi Offline
Member

Post: #3
RE: TextStyle in TextLine
That worked. However not every font is suitable for that, but I guess that's a general problem with the font then.
11-30-2013 07:44 PM
Find all posts by this user Quote this message in a reply
Eric Offline
Member

Post: #4
RE: TextStyle in TextLine
Hi,
After new release there is a problem with Gui.ts_textline.scale. There's no visible difference whether it's set to 0.65f or 0.0065f; Try to set:
Code:
Gui.ts_textline.scale=0.00000065;
in "Tutorial 05 - Gui - 08 Loading Gui Objects" and you'll see no difference.

Regards,
Eric 'Eri' Przychocki
ourgames.eu
(This post was last modified: 03-01-2014 03:28 PM by Eric.)
03-01-2014 03:27 PM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #5
RE: TextStyle in TextLine
From the version notes:
-TextLine.text_style scale is now ignored, the scale is taken only from the height of the TextLine rectangle
03-01-2014 06:04 PM
Find all posts by this user Quote this message in a reply
Eric Offline
Member

Post: #6
RE: TextStyle in TextLine
Ehh.. this is sooo bad idea.. Anyway, thanks!

Regards,
Eric 'Eri' Przychocki
ourgames.eu
03-01-2014 06:44 PM
Find all posts by this user Quote this message in a reply
Post Reply