G2A Online Shop
No ads? Support us with tips! Follow this link for more information!Support the website! Support Us!
Tukui » ElvUI » Technical Support » Restoring defualt Wow font?
  1. Challenger debuffhelp
    offline
    Member

    XP: 
     

    7 / 1337
    Posted 4 years ago - #1

    Im wondering how to restore the defualt wow font?
    I have a hard time reading all the fonts that come with ElvUI.



  2. If you wish to help support this site please disable your adblock program.


    offline
    Moderator

    XP: 
     

    1337 / 1337
    Posted 4 years ago - #2

    Please specify where you see the fonts you would like to change (Questlog, datatext, AH etc.)

    I prefer the standard fonts aswell and if you want everything to look as close to standard as possible I will try to dig out my code changes for you.

  3. Challenger debuffhelp
    offline
    Member

    XP: 
     

    7 / 1337
    Posted 4 years ago - #3

    Hi, I would like the default font for everything, all menus, screens, etc.

  4. offline
    Moderator

    XP: 
     

    1337 / 1337
    Posted 4 years ago - #4

    Replace your ElvUI\core\fonts.lua with this one.
    Also, set your default font to be "Friz Quadrata TT" in the General section of the ingame config.

    I have tried to mimic the blizzard fonts and settings as closely as possible but you might notice a few differences. I like the way it looks now though and it is much easier for me to read.

  5. Challenger debuffhelp
    offline
    Member

    XP: 
     

    7 / 1337
    Posted 4 years ago - #5

    Yes that worked great.
    Thankyou very much :)

  6. Challenger danny2001k
    offline
    Member

    XP: 
     

    12 / 1337
    Posted 4 years ago - #6

    the font file doesn't work anymore.

    I tried changing and and receive a lua error:

    Message: Interface\AddOns\ElvUI\core\fonts.lua:14: attempt to index field 'general' (a nil value)
    Time: 08/21/12 10:26:54
    Count: 1
    Stack: Interface\AddOns\ElvUI\core\fonts.lua:14: in function `UpdateBlizzardFonts'
    Interface\AddOns\ElvUI\core\core.lua:96: in function `UpdateMedia'
    Interface\AddOns\ElvUI\init.lua:75: in function <Interface\AddOns\ElvUI\init.lua:38>
    (tail call): ?
    [C]: ?
    [string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5>
    (tail call): ?
    ...face\AddOns\ElvUI\libs\AceAddon-3.0\AceAddon-3.0.lua:514: in function `InitializeAddon'
    ...face\AddOns\ElvUI\libs\AceAddon-3.0\AceAddon-3.0.lua:628: in function <...face\AddOns\ElvUI\libs\AceAddon-3.0\AceAddon-3.0.lua:621>
    
    Locals: <none>

    later edit: got ti working with some modification to the fonts.lua:

    local E, L, V, P, G, _ = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore
    local LSM = LibStub("LibSharedMedia-3.0")
    
    local function SetFont(obj, font, size, style, r, g, b, sr, sg, sb, sox, soy)
    	obj:SetFont(font, size, style)
    	if sr and sg and sb then obj:SetShadowColor(sr, sg, sb) end
    	if sox and soy then obj:SetShadowOffset(sox, soy) end
    	if r and g and b then obj:SetTextColor(r, g, b)
    	elseif r then obj:SetAlpha(r) end
    end
    
    function E:UpdateBlizzardFonts()
    	local NORMAL     = self["media"].normFont
    	local COMBAT     = LSM:Fetch('font', self.private.general.dmgfont)
    	local NUMBER     = self["media"].normFont
    	local CHAT		 = LSM:Fetch('font', self.db.chat.font)
    	local MONOCHROME = ''
    	local NUMBER2    = [=[Fonts\ARIALN.TTF]=]
    	local _, editBoxFontSize, _, _, _, _, _, _, _, _ = GetChatWindowInfo(1)
    
    	UIDROPDOWNMENU_DEFAULT_TEXT_HEIGHT = 12
    	CHAT_FONT_HEIGHTS = {12, 13, 14, 15, 16, 17, 18, 19, 20}
    
    	UNIT_NAME_FONT     = NORMAL
    	NAMEPLATE_FONT     = NORMAL
    	DAMAGE_TEXT_FONT   = COMBAT
    	STANDARD_TEXT_FONT = NORMAL
    
    	if self.db.general.font:lower():find('pixel') then
    		MONOCHROME = 'MONOCHROME'
    	end
    
    	if self.eyefinity then
    		-- damage are huge on eyefinity, so we disable it
    		InterfaceOptionsCombatTextPanelTargetDamage:Hide()
    		InterfaceOptionsCombatTextPanelPeriodicDamage:Hide()
    		InterfaceOptionsCombatTextPanelPetDamage:Hide()
    		InterfaceOptionsCombatTextPanelHealing:Hide()
    		SetCVar("CombatLogPeriodicSpells",0)
    		SetCVar("PetMeleeDamage",0)
    		SetCVar("CombatDamage",0)
    		SetCVar("CombatHealing",0)
    
    		-- set an invisible font for xp, honor kill, etc
    		local INVISIBLE = [=[Interface\Addons\ElvUI\media\fonts\Invisible.ttf]=]
    		COMBAT = INVISIBLE
    	end
    
    	-- Base fonts
    	--SetFont(NumberFontNormal,					LSM:Fetch('font', 'ElvUI Pixel'), 10, 'MONOCHROMEOUTLINE', 1, 1, 1, 0, 0, 0)
    	SetFont(GameTooltipHeader,                  NORMAL, self.db.general.fontSize)
    	SetFont(NumberFont_OutlineThick_Mono_Small, NUMBER, self.db.general.fontSize, "OUTLINE")
    	SetFont(NumberFont_Outline_Huge,            NUMBER, 28, MONOCHROME.."THICKOUTLINE", 28)
    	SetFont(NumberFont_Outline_Large,           NUMBER, 15, MONOCHROME.."OUTLINE")
    	SetFont(NumberFont_Outline_Med,             NUMBER, self.db.general.fontSize*1.1, "OUTLINE")
    	SetFont(NumberFont_Shadow_Med,              NUMBER2, self.db.general.fontSize*1.1) --chat editbox uses this
    	SetFont(NumberFont_Shadow_Small,            NORMAL, self.db.general.fontSize)
    	SetFont(QuestFont,                          NORMAL, self.db.general.fontSize)
    	SetFont(QuestFont_Large,                    NORMAL, 14)
    	SetFont(SystemFont_Large,                   NORMAL, 15)
    	SetFont(GameFontNormalMed3,					NORMAL, 15)
    	SetFont(SystemFont_Shadow_Huge1,			NORMAL, 20, MONOCHROME.."OUTLINE") -- Raid Warning, Boss emote frame too
    	SetFont(SystemFont_Med1,                    NORMAL, self.db.general.fontSize)
    	SetFont(SystemFont_Med3,                    NORMAL, self.db.general.fontSize*1.1)
    	SetFont(SystemFont_OutlineThick_Huge2,      NORMAL, 20, MONOCHROME.."THICKOUTLINE")
    	SetFont(SystemFont_Outline_Small,           NUMBER, self.db.general.fontSize, "OUTLINE")
    	SetFont(SystemFont_Shadow_Large,            NORMAL, 15)
    	SetFont(SystemFont_Shadow_Med1,             NORMAL, self.db.general.fontSize)
    	SetFont(SystemFont_Shadow_Med3,             NORMAL, self.db.general.fontSize*1.1)
    	SetFont(SystemFont_Shadow_Outline_Huge2,    NORMAL, 20, MONOCHROME.."OUTLINE")
    	SetFont(SystemFont_Shadow_Small,            NORMAL, self.db.general.fontSize*0.9)
    	SetFont(SystemFont_Small,                   NORMAL, self.db.general.fontSize)
    	SetFont(SystemFont_Tiny,                    NORMAL, self.db.general.fontSize)
    	SetFont(Tooltip_Med,                        NORMAL, self.db.general.fontSize)
    	SetFont(Tooltip_Small,                      NORMAL, self.db.general.fontSize)
    	SetFont(ZoneTextString,						NORMAL, 32, MONOCHROME.."OUTLINE")
    	SetFont(SubZoneTextString,					NORMAL, 25, MONOCHROME.."OUTLINE")
    	SetFont(PVPInfoTextString,					NORMAL, 22, MONOCHROME.."OUTLINE")
    	SetFont(PVPArenaTextString,					NORMAL, 22, MONOCHROME.."OUTLINE")
    	SetFont(CombatTextFont,                     COMBAT, 100, "OUTLINE") -- number here just increase the font quality.
    end
  7. Challenger danny2001k
    offline
    Member

    XP: 
     

    12 / 1337
    Posted 3 years ago - #7

    Updated the font.lua to work with latest 4.x version of Elvui
    Just replace the current font.lua with the text in the above post.

RSS feed for this topic

Reply

You must log in to post.