Thread Tools Display Modes
04/16/14, 09:17 AM   #1
Artajörn
Join Date: Apr 2014
Posts: 19
Question How can I change the text format?

Hi,

I would like to know how can I change both the size and the thickness of the text in a label. I want the text to be bold and larger.

Regards and thanks in advance.
  Reply With Quote
04/16/14, 12:56 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
Here's a list of all the defined font objects that are in-game.
http://www.esoui.com/forums/showthre...ighlight=fonts

You can change your label to use a different font definition.
  Reply With Quote
04/16/14, 05:20 PM   #3
Kith
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 49
If you want to really mess with fonts and choices you can go the next step up and use:
Lua Code:
  1. label:SetFont(strformat('%s|%d|%s', <PATH-TO-FONT>, <FONT-SIZE>, <FONT-STYLE>))
  2.  
  3. local fontConfig = strformat('%s|%d|%s', LMP:Fetch('font', db.overlays.font), 16, 'soft-shadow-thick')
  4.     -- as an example
Lets you use one of the built-in font files (zgoo shows them and Seerah's link) then can set size and border style as well to any of the options).
  Reply With Quote
04/17/14, 09:33 AM   #4
Artajörn
Join Date: Apr 2014
Posts: 19
Thank you very much both of you for your answers. They have been very useful to me.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » How can I change the text format?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off