About Store Forum Documentation Contact



Post Reply 
Basic Info About Fonts
Author Message
EthanC Offline
Member

Post: #1
Basic Info About Fonts
Trying to create elements in the GUI editor I see nowhere I can simply specify the size of the font I want to be using. To do something like change it's color I have to enter "code" but I haven't found anywhere that lists these "codes" I'm supposed to be using.
11-23-2011 05:32 AM
Find all posts by this user Quote this message in a reply
Dwight Offline
Silver Supporter

Post: #2
RE: Basic Info About Fonts
Code:
[color=asdasd][/color]
[size=15][/size]

Something like this it was I believe...

SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
11-23-2011 08:05 AM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #3
RE: Basic Info About Fonts
Search for text.code in the Header Browser tool. Acceptable codes and example usage are written in the comments.

Actually, just hover over the Code input box in the GUI Editor. A tooltip appears with the header comments displayed.

Size is determined by TextDS. Either create a custom font using the Font Maker (down-arrow at upper-left corner > Font Maker) and use that or scale the default TextDS via code (e.g. Text_ds.scale = Vec2(0.1f, 0.1f); or Gui.tds_text.scale = Vec2(0.1f, 0.1f);).
(This post was last modified: 11-23-2011 10:37 AM by Driklyn.)
11-23-2011 10:36 AM
Find all posts by this user Quote this message in a reply
Post Reply