Thread Tools Display Modes
06/02/14, 11:05 AM   #1
Edda
 
Edda's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
Font size ?

Is it possible to resize fonts ? If not I am looking for something smaller than 'ZoFontAnnounceSmall'

Thx!

Teh Edda
  Reply With Quote
06/02/14, 11:11 AM   #2
Tar000un
 
Tar000un's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 47
Yes, but the size isnt font's dependent.

Check Control:SetScale(number)
  Reply With Quote
06/02/14, 11:15 AM   #3
Edda
 
Edda's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
Originally Posted by Tar000un View Post
Yes, but the size isnt font's dependent.

Check Control:SetScale(number)
Ima check it thx.
  Reply With Quote
06/02/14, 12:04 PM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
You do not have to use predefined font styles, you can define your own:

Lua Code:
  1. local path = "EsoUI/Common/Fonts/univers67.otf"
  2. local size = 50
  3. local outline = "soft-shadow-thin"
  4.  
  5. label:SetFont(path .. "|" .. size .. "|" ..  outline)
Outlines:
  • "none"
  • "outline"
  • "thin-outline"
  • "thick-outline"
  • "shadow"
  • "soft-shadow-thin"
  • "soft-shadow-thick"
Default font paths:
  • "EsoUI/Common/Fonts/arialn.ttf"
  • "EsoUI/Common/Fonts/consola.ttf"
  • "EsoUI/Common/Fonts/esocartographer-bold.otf"
  • "EsoUI/Common/Fonts/fontin_sans_b.otf"
  • "EsoUI/Common/Fonts/fontin_sans_i.otf"
  • "EsoUI/Common/Fonts/fontin_sans_r.otf"
  • "EsoUI/Common/Fonts/fontin_sans_sc.otf"
  • "EsoUI/Common/Fonts/Handwritten_Bold.otf"
  • "EsoUI/Common/Fonts/ProseAntiquePSMT.otf"
  • "EsoUI/Common/Fonts/trajanpro-regular.otf"
  • "EsoUI/Common/Fonts/univers55.otf"
  • "EsoUI/Common/Fonts/univers57.otf"
  • "EsoUI/Common/Fonts/univers67.otf"
  Reply With Quote
06/02/14, 12:16 PM   #5
Edda
 
Edda's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
Nice. Well I found I needed. I looked at font size to have a small print but found out you can scale UI elements globally
  Reply With Quote
06/03/14, 07:38 AM   #6
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 89
If you want to use fonts, or let the user decide which font to use, then check out LibMediaProvider and include it with your project. It includes all the fonts that eso uses by default, and can use all fonts additionally defined by your addon or other addons.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Font size ?


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