Fonts

From ESOUI Wiki

Jump to: navigation, search

Page up-to-date to API Version 100023




Contents

ZOS Fonts

ESO currently uses 9 core fonts from 8 OTF Files which are found below. It then create "unique" versions of these fonts by assigning various text formatting properties. The ZOS fonts, including their properties are also found below.

You may reference/use a font simply by calling its 'Font Name'.


Core Fonts

The regular ESO UI font is Univers57

For a list of font names, see below

To create your own font definition:

    local fontSize = 12
    local fontStyle = "MEDIUM_FONT"         -- or "BOLD_FONT"
    local fontWeight = "soft-shadow-thin"   -- or "soft-shadow-thick", or... see below
    local nameFont = string.format("$(%s)|$(KB_%s)|%s", fontStyle, fontSize, fontWeight) -- or
--  local nameFont = zo_strformat("$({1})|$(KB_{2})|{3}", fontStyle, fontSize, fontWeight)

defaultfontstrings_western.xml

    <!-- Western fonts -->
    <String name="MEDIUM_FONT" value="EsoUI/Common/Fonts/Univers57.otf" />
    <String name="BOLD_FONT" value="EsoUI/Common/Fonts/Univers67.otf" />
    <String name="CHAT_FONT" value="EsoUI/Common/Fonts/Univers57.otf" />
 
    <String name="GAMEPAD_LIGHT_FONT" value="EsoUI/Common/Fonts/FTN47.otf" />
    <String name="GAMEPAD_MEDIUM_FONT" value="EsoUI/Common/Fonts/FTN57.otf" />
    <String name="GAMEPAD_BOLD_FONT" value="EsoUI/Common/Fonts/FTN87.otf" />
 
    <String name="ANTIQUE_FONT" value="EsoUI/Common/Fonts/ProseAntiquePSMT.otf" />
    <String name="HANDWRITTEN_FONT" value="EsoUI/Common/Fonts/Handwritten_Bold.otf" />
    <String name="STONE_TABLET_FONT" value="EsoUI/Common/Fonts/TrajanPro-Regular.otf" />
    <!-- Japaneese fonts -->
    <String name="MEDIUM_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />
    <String name="BOLD_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />
    <String name="CHAT_FONT" value="EsoUI/Common/Fonts/ESO_FWUDC_70-M.ttf" />
 
    <String name="GAMEPAD_LIGHT_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />
    <String name="GAMEPAD_MEDIUM_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />
    <String name="GAMEPAD_BOLD_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />
 
    <String name="ANTIQUE_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />
    <String name="HANDWRITTEN_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />
    <String name="STONE_TABLET_FONT" value="EsoUI/Common/Fonts/ESO_FWNTLGUDC70-DB.ttf" />

Setting fonts to a control

Set a control's font style like this:

XML

<Button name="$(parent)_btn" text="myButton" font="ZoFontGameLargeBold" verticalAlignment="CENTER" 
  horizontalAlignment="CENTER" mouseEnabled="true">

LUA

control:SetFont("ZoFontGameBold")

Core Sizes

They're defined in same files as Core Fonts

    <String name="KB_8" value="8"/>
    <String name="KB_9" value="9"/>
    <String name="KB_10" value="10"/>
    <String name="KB_11" value="11"/>
    <String name="KB_12" value="12"/>
    <String name="KB_13" value="13"/>
    <String name="KB_14" value="14"/>
    <String name="KB_15" value="15"/>
    <String name="KB_16" value="16"/>
    <String name="KB_17" value="17"/>
    <String name="KB_18" value="18"/>
    <String name="KB_19" value="19"/>
    <String name="KB_20" value="20"/>
    <String name="KB_21" value="21"/>
    <String name="KB_22" value="22"/>
    <String name="KB_23" value="23"/>
    <String name="KB_24" value="24"/>
    <String name="KB_25" value="25"/>
    <String name="KB_26" value="26"/>
    <String name="KB_28" value="28"/>
    <String name="KB_30" value="30"/>
    <String name="KB_32" value="32"/>
    <String name="KB_34" value="34"/>
    <String name="KB_36" value="36"/>
    <String name="KB_40" value="40"/>
    <String name="KB_48" value="48"/>
    <String name="KB_54" value="54"/>
 
    <String name="GP_18" value="18"/>
    <String name="GP_20" value="20"/>
    <String name="GP_22" value="22"/>
    <String name="GP_25" value="25"/>
    <String name="GP_27" value="27"/>
    <String name="GP_30" value="30"/>
    <String name="GP_34" value="34"/>
    <String name="GP_36" value="36"/>
    <String name="GP_42" value="42"/>
    <String name="GP_45" value="45"/>
    <String name="GP_48" value="48"/>
    <String name="GP_54" value="54"/>
    <String name="GP_61" value="61"/>


Font Names

Keyboard

They're defined in esoui/fontdefs/keyboard/defaultfontdefs_keyboard.xml

While this wiki page includes a list for convenience, please see the source on github for the most recent version.


    <!-- Fonts created in this file will only be loaded for Keyboard (i.e. PC) 
         Any files loaded on the Consoles should not use these fonts as they will not render -->
    <Font name="ZoFontWinH1" font="$(BOLD_FONT)|$(KB_30)|soft-shadow-thick" />
    <Font name="ZoFontWinH2" font="$(BOLD_FONT)|$(KB_24)|soft-shadow-thick" />
    <Font name="ZoFontWinH3" font="$(BOLD_FONT)|$(KB_20)|soft-shadow-thick" />
    <Font name="ZoFontWinH4" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thick" />
    <Font name="ZoFontWinH5" font="$(BOLD_FONT)|$(KB_16)|soft-shadow-thick" />
 
    <Font name="ZoFontWinH3SoftShadowThin" font="$(BOLD_FONT)|$(KB_20)|soft-shadow-thin" />
 
    <Font name="ZoFontWinT1" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thin" />
    <Font name="ZoFontWinT2" font="$(BOLD_FONT)|$(KB_16)|soft-shadow-thin" />
 
    <Font name="ZoFontGame" font="$(MEDIUM_FONT)|$(KB_18)|soft-shadow-thin" />
    <Font name="ZoFontGameMedium" font="$(MEDIUM_FONT)|$(KB_18)|soft-shadow-thin" />
    <Font name="ZoFontGameBold" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thin" />
    <Font name="ZoFontGameOutline" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thin" />    
    <Font name="ZoFontGameShadow" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thin" />
 
    <Font name="ZoFontKeyboard28ThickOutline" font="$(BOLD_FONT)|$(KB_28)|thick-outline" />
    <Font name="ZoFontKeyboard24ThickOutline" font="$(BOLD_FONT)|$(KB_24)|thick-outline" />
    <Font name="ZoFontKeyboard18ThickOutline" font="$(BOLD_FONT)|$(KB_18)|thick-outline" />
 
    <Font name="ZoFontGameSmall" font="$(BOLD_FONT)|$(KB_13)|soft-shadow-thin" />
    <Font name="ZoFontGameLarge" font="$(MEDIUM_FONT)|$(KB_18)|soft-shadow-thin" />
    <Font name="ZoFontGameLargeBold" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thick" />
    <Font name="ZoFontGameLargeBoldShadow" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thick" />
 
    <Font name="ZoFontHeader" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thick" />
    <Font name="ZoFontHeader2" font="$(BOLD_FONT)|$(KB_20)|soft-shadow-thick" />
    <Font name="ZoFontHeader3" font="$(BOLD_FONT)|$(KB_24)|soft-shadow-thick" />
    <Font name="ZoFontHeader4" font="$(BOLD_FONT)|$(KB_26)|soft-shadow-thick" />
 
    <Font name="ZoFontHeaderNoShadow" font="$(BOLD_FONT)|$(KB_18)" />
 
    <Font name="ZoFontCallout" font="$(BOLD_FONT)|$(KB_36)|soft-shadow-thick" />
    <Font name="ZoFontCallout2" font="$(BOLD_FONT)|$(KB_48)|soft-shadow-thick" />
    <Font name="ZoFontCallout3" font="$(BOLD_FONT)|$(KB_54)|soft-shadow-thick" />
 
    <Font name="ZoFontEdit" font="$(MEDIUM_FONT)|$(KB_18)|shadow"/>
    <Font name="ZoFontEdit20NoShadow" font="$(BOLD_FONT)|$(KB_20)"/>
 
    <Font name="ZoFontChat" font="$(CHAT_FONT)|$(KB_18)|soft-shadow-thin" />
    <Font name="ZoFontEditChat" font="$(CHAT_FONT)|$(KB_18)|shadow" />
 
    <Font name="ZoFontWindowTitle" font="$(BOLD_FONT)|$(KB_30)|soft-shadow-thick" />
    <Font name="ZoFontWindowSubtitle" font="$(BOLD_FONT)|$(KB_18)|soft-shadow-thick" />
 
    <Font name="ZoFontTooltipTitle" font="$(BOLD_FONT)|$(KB_22)" />
    <Font name="ZoFontTooltipSubtitle" font="$(MEDIUM_FONT)|$(KB_18)" />
 
    <Font name="ZoFontAnnounce" font="$(BOLD_FONT)|$(KB_28)|soft-shadow-thick" />
    <Font name="ZoFontAnnounceMessage" font="$(BOLD_FONT)|$(KB_24)|soft-shadow-thick" />
    <Font name="ZoFontAnnounceMedium" font="$(BOLD_FONT)|$(KB_24)|soft-shadow-thick" />
    <Font name="ZoFontAnnounceLarge" font="$(BOLD_FONT)|$(KB_36)|soft-shadow-thick" />
 
    <Font name="ZoFontAnnounceLargeNoShadow" font="$(BOLD_FONT)|$(KB_36)" />
 
    <Font name="ZoFontCenterScreenAnnounceLarge" font="$(BOLD_FONT)|$(KB_40)|soft-shadow-thick" />
    <Font name="ZoFontCenterScreenAnnounceSmall" font="$(BOLD_FONT)|$(KB_30)|soft-shadow-thick" />
 
    <Font name="ZoFontAlert" font="$(BOLD_FONT)|$(KB_24)|soft-shadow-thick" />
 
    <Font name="ZoFontConversationName" font="$(BOLD_FONT)|$(KB_28)|soft-shadow-thick" />
    <Font name="ZoFontConversationText" font="$(BOLD_FONT)|$(KB_24)|soft-shadow-thick" />
    <Font name="ZoFontConversationOption" font="$(BOLD_FONT)|$(KB_22)|soft-shadow-thick" />
    <Font name="ZoFontConversationQuestReward" font="$(BOLD_FONT)|$(KB_20)|soft-shadow-thick" />
 
    <Font name="ZoFontKeybindStripKey" font="$(MEDIUM_FONT)|$(KB_20)|soft-shadow-thin" />
    <Font name="ZoFontKeybindStripDescription" font="$(BOLD_FONT)|$(KB_25)|soft-shadow-thick" />
    <Font name="ZoFontDialogKeybindDescription" font="$(BOLD_FONT)|$(KB_20)|soft-shadow-thick" />
 
    <Font name="ZoInteractionPrompt" font="$(BOLD_FONT)|$(KB_24)|soft-shadow-thick" />
 
    <Font name="ZoFontCreditsHeader" font="$(BOLD_FONT)|$(KB_24)" />
    <Font name="ZoFontCreditsText" font="$(BOLD_FONT)|$(KB_18)" />
 
    <Font name="ZoFontSubtitleText" font="$(MEDIUM_FONT)|$(KB_28)|soft-shadow-thick" />
 
    <Font name="ZoMarketAnnouncementKeyboardDescriptionFont" font="$(MEDIUM_FONT)|$(KB_22)" />
    <Font name="ZoMarketAnnouncementCalloutFont" font="$(BOLD_FONT)|$(KB_32)|soft-shadow-thin" />
 
    <!-- In Game Book Fonts-->
    <Font name="ZoFontBookPaper" font="$(ANTIQUE_FONT)|20" />
    <Font name="ZoFontBookSkin" font="$(ANTIQUE_FONT)|20" />
    <Font name="ZoFontBookRubbing" font="$(ANTIQUE_FONT)|20" />
    <Font name="ZoFontBookLetter" font="$(HANDWRITTEN_FONT)|20" />
    <Font name="ZoFontBookNote" font="$(HANDWRITTEN_FONT)|22" />
    <Font name="ZoFontBookScroll" font="$(HANDWRITTEN_FONT)|26" />
    <Font name="ZoFontBookTablet" font="$(STONE_TABLET_FONT)|30|soft-shadow-thick" />
    <Font name="ZoFontBookMetal" font="$(ANTIQUE_FONT)|20|soft-shadow-thick" />
 
    <!-- In Game Book Title Fonts-->
    <Font name="ZoFontBookPaperTitle" font="$(ANTIQUE_FONT)|30" />
    <Font name="ZoFontBookSkinTitle" font="$(ANTIQUE_FONT)|30" />
    <Font name="ZoFontBookRubbingTitle" font="$(ANTIQUE_FONT)|30" />
    <Font name="ZoFontBookLetterTitle" font="$(HANDWRITTEN_FONT)|30" />
    <Font name="ZoFontBookNoteTitle" font="$(HANDWRITTEN_FONT)|32" />
    <Font name="ZoFontBookScrollTitle" font="$(HANDWRITTEN_FONT)|34" />
    <Font name="ZoFontBookTabletTitle" font="$(STONE_TABLET_FONT)|48|soft-shadow-thick" />
    <Font name="ZoFontBookMetalTitle" font="$(ANTIQUE_FONT)|30|soft-shadow-thick" />

Gamepad

They're defined in esoui/fontdefs/gamepad/defaultfontdefs_gamepad.xml

While this wiki page includes a list for convenience, please see the source on github for the most recent version.

 
    <!-- Generic Gamepad Fonts-->
    <Font name="ZoFontGamepad61" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_61)|soft-shadow-thick" />
    <Font name="ZoFontGamepad54" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_54)|soft-shadow-thick" />
    <Font name="ZoFontGamepad45" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_45)|soft-shadow-thick" />
    <Font name="ZoFontGamepad42" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_42)|soft-shadow-thick" />
    <Font name="ZoFontGamepad36" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_36)|soft-shadow-thick" />
    <Font name="ZoFontGamepad34" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_34)|soft-shadow-thick" />
    <Font name="ZoFontGamepad27" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_27)|soft-shadow-thick" />
    <Font name="ZoFontGamepad25" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_25)|soft-shadow-thick" />
    <Font name="ZoFontGamepad22" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_22)|soft-shadow-thick" />
    <Font name="ZoFontGamepad20" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_20)|soft-shadow-thick" />
    <Font name="ZoFontGamepad18" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_18)|soft-shadow-thick" />
 
    <Font name="ZoFontGamepad27NoShadow" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_27)" />
    <Font name="ZoFontGamepad42NoShadow" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_42)" />
 
    <Font name="ZoFontGamepad36ThickOutline" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_36)|thick-outline" />
 
    <Font name="ZoFontGamepadCondensed61" font="$(GAMEPAD_LIGHT_FONT)|$(GP_61)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed54" font="$(GAMEPAD_LIGHT_FONT)|$(GP_54)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed45" font="$(GAMEPAD_LIGHT_FONT)|$(GP_45)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed42" font="$(GAMEPAD_LIGHT_FONT)|$(GP_42)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed36" font="$(GAMEPAD_LIGHT_FONT)|$(GP_36)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed34" font="$(GAMEPAD_LIGHT_FONT)|$(GP_34)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed27" font="$(GAMEPAD_LIGHT_FONT)|$(GP_27)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed25" font="$(GAMEPAD_LIGHT_FONT)|$(GP_25)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed22" font="$(GAMEPAD_LIGHT_FONT)|$(GP_22)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed20" font="$(GAMEPAD_LIGHT_FONT)|$(GP_20)|soft-shadow-thick" />
    <Font name="ZoFontGamepadCondensed18" font="$(GAMEPAD_LIGHT_FONT)|$(GP_18)|soft-shadow-thick" />
 
    <Font name="ZoFontGamepadBold61" font="$(GAMEPAD_BOLD_FONT)|$(GP_61)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold54" font="$(GAMEPAD_BOLD_FONT)|$(GP_54)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold48" font="$(GAMEPAD_BOLD_FONT)|$(GP_48)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold34" font="$(GAMEPAD_BOLD_FONT)|$(GP_34)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold27" font="$(GAMEPAD_BOLD_FONT)|$(GP_27)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold25" font="$(GAMEPAD_BOLD_FONT)|$(GP_25)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold22" font="$(GAMEPAD_BOLD_FONT)|$(GP_22)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold20" font="$(GAMEPAD_BOLD_FONT)|$(GP_20)|soft-shadow-thick" />
    <Font name="ZoFontGamepadBold18" font="$(GAMEPAD_BOLD_FONT)|$(GP_18)|soft-shadow-thick" />
 
    <Font name="ZoFontGamepadChat" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_20)|soft-shadow-thick" />
    <Font name="ZoFontGamepadEditChat" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_20)|soft-shadow-thick" />
 
    <!-- In Game Book Fonts-->
    <Font name="ZoFontGamepadBookPaper" font="$(ANTIQUE_FONT)|30" />
    <Font name="ZoFontGamepadBookSkin" font="$(ANTIQUE_FONT)|30" />
    <Font name="ZoFontGamepadBookRubbing" font="$(ANTIQUE_FONT)|30" />
    <Font name="ZoFontGamepadBookLetter" font="$(HANDWRITTEN_FONT)|30" />
    <Font name="ZoFontGamepadBookNote" font="$(HANDWRITTEN_FONT)|32" />
    <Font name="ZoFontGamepadBookScroll" font="$(HANDWRITTEN_FONT)|36" />
    <Font name="ZoFontGamepadBookTablet" font="$(STONE_TABLET_FONT)|30|soft-shadow-thick" />
    <Font name="ZoFontGamepadBookMetal" font="$(ANTIQUE_FONT)|30|soft-shadow-thick" />
 
    <!-- In Game Book Title Fonts-->
    <Font name="ZoFontGamepadBookPaperTitle" font="$(ANTIQUE_FONT)|40" />
    <Font name="ZoFontGamepadBookSkinTitle" font="$(ANTIQUE_FONT)|40" />
    <Font name="ZoFontGamepadBookRubbingTitle" font="$(ANTIQUE_FONT)|40" />
    <Font name="ZoFontGamepadBookLetterTitle" font="$(HANDWRITTEN_FONT)|40" />
    <Font name="ZoFontGamepadBookNoteTitle" font="$(HANDWRITTEN_FONT)|42" />
    <Font name="ZoFontGamepadBookScrollTitle" font="$(HANDWRITTEN_FONT)|44" />
    <Font name="ZoFontGamepadBookTabletTitle" font="$(STONE_TABLET_FONT)|40|soft-shadow-thick" />
    <Font name="ZoFontGamepadBookMetalTitle" font="$(ANTIQUE_FONT)|40|soft-shadow-thick" />
 
    <!-- Header fonts-->
    <Font name="ZoFontGamepadHeaderDataValue" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_42)|soft-shadow-thick" />
 
    <!-- Market fonts-->
    <Font name="ZoMarketGamepadCalloutFont" font="$(GAMEPAD_MEDIUM_FONT)|$(GP_42)|soft-shadow-thin" />
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox