View Single Post
11-26-16, 04:20 PM   #20
Malus416
A Murloc Raider
Join Date: Nov 2016
Posts: 9
Originally Posted by Ketho View Post
Changing the "CombatText Font" option in ElvUI should affect both the font that appears over other players' heads and the font for Scrolling Combat Text for Self

https://www.youtube.com/watch?v=BtNTIhYpZQ8



http://www.tukui.org/git/?a=viewblob...core/fonts.lua
Lua Code:
  1. local function SetFont(obj, font, size, style, r, g, b, sr, sg, sb, sox, soy)
  2.     obj:SetFont(font, size, style)
  3.     if sr and sg and sb then obj:SetShadowColor(sr, sg, sb) end
  4.     if sox and soy then obj:SetShadowOffset(sox, soy) end
  5.     if r and g and b then obj:SetTextColor(r, g, b)
  6.     elseif r then obj:SetAlpha(r) end
  7. end
  8.  
  9. function E:UpdateBlizzardFonts()
  10.     local NORMAL     = self["media"].normFont
  11.     local COMBAT     = LSM:Fetch('font', self.private.general.dmgfont)
  12.     local NUMBER     = self["media"].normFont
  13.     local NAMEFONT       = LSM:Fetch('font', self.private.general.namefont)
  14.     local MONOCHROME = ''
  15.  
  16.     CHAT_FONT_HEIGHTS = {6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}
  17.  
  18.     if self.db.general.font == "Homespun" then
  19.         MONOCHROME = 'MONOCHROME'
  20.     end
  21.  
  22.     if self.eyefinity then
  23.         SetCVar("floatingcombattextcombatlogperiodicspells",0)
  24.         SetCVar("floatingcombattextpetmeleedamage",0)
  25.         SetCVar("floatingcombattextcombatdamage",0)
  26.         SetCVar("floatingcombattextcombathealing",0)
  27.  
  28.         -- set an invisible font for xp, honor kill, etc
  29.         COMBAT = [=[Interface\Addons\ElvUI\media\fonts\Invisible.ttf]=]
  30.     end
  31.  
  32.     UNIT_NAME_FONT     = NAMEFONT
  33.     --NAMEPLATE_FONT     = NAMEFONT
  34.     DAMAGE_TEXT_FONT   = COMBAT
  35.     STANDARD_TEXT_FONT = NORMAL
  36.  
  37.     if self.private.general.replaceBlizzFonts then
  38.         -- Base fonts
  39.         --SetFont(NumberFontNormal,                 LSM:Fetch('font', 'Homespun'), 10, 'MONOCHROMEOUTLINE', 1, 1, 1, 0, 0, 0)
  40.         SetFont(GameTooltipHeader,                  NORMAL, self.db.general.fontSize)
  41.         SetFont(NumberFont_OutlineThick_Mono_Small, NUMBER, self.db.general.fontSize, "OUTLINE")
  42.         SetFont(SystemFont_Shadow_Large_Outline,    NUMBER, 20, "OUTLINE")
  43.         SetFont(NumberFont_Outline_Huge,            NUMBER, 28, MONOCHROME.."THICKOUTLINE", 28)
  44.         SetFont(NumberFont_Outline_Large,           NUMBER, 15, MONOCHROME.."OUTLINE")
  45.         SetFont(NumberFont_Outline_Med,             NUMBER, self.db.general.fontSize*1.1, "OUTLINE")
  46.         SetFont(NumberFont_Shadow_Med,              NORMAL, self.db.general.fontSize) --chat editbox uses this
  47.         SetFont(NumberFont_Shadow_Small,            NORMAL, self.db.general.fontSize)
  48.         SetFont(QuestFont,                          NORMAL, self.db.general.fontSize)
  49.         SetFont(QuestFont_Large,                    NORMAL, 14)
  50.         SetFont(SystemFont_Large,                   NORMAL, 15)
  51.         SetFont(GameFontNormalMed3,                 NORMAL, 15)
  52.         SetFont(GameFontHighlightMedium,            NORMAL, 15)
  53.         SetFont(SystemFont_Shadow_Huge1,            NORMAL, 20, MONOCHROME.."OUTLINE") -- Raid Warning, Boss emote frame too
  54.         SetFont(SystemFont_Med1,                    NORMAL, self.db.general.fontSize)
  55.         SetFont(SystemFont_Med3,                    NORMAL, self.db.general.fontSize*1.1)
  56.         SetFont(SystemFont_OutlineThick_Huge2,      NORMAL, 20, MONOCHROME.."THICKOUTLINE")
  57.         SetFont(SystemFont_Outline_Small,           NUMBER, self.db.general.fontSize, "OUTLINE")
  58.         SetFont(SystemFont_Shadow_Large,            NORMAL, 15)
  59.         SetFont(SystemFont_Shadow_Med1,             NORMAL, self.db.general.fontSize)
  60.         SetFont(SystemFont_Shadow_Med3,             NORMAL, self.db.general.fontSize*1.1)
  61.         SetFont(SystemFont_Shadow_Outline_Huge2,    NORMAL, 20, MONOCHROME.."OUTLINE")
  62.         SetFont(SystemFont_Shadow_Small,            NORMAL, self.db.general.fontSize*0.9)
  63.         SetFont(SystemFont_Small,                   NORMAL, self.db.general.fontSize)
  64.         SetFont(SystemFont_Tiny,                    NORMAL, self.db.general.fontSize)
  65.         SetFont(Tooltip_Med,                        NORMAL, self.db.general.fontSize)
  66.         SetFont(Tooltip_Small,                      NORMAL, self.db.general.fontSize)
  67.         SetFont(ZoneTextString,                     NORMAL, 32, MONOCHROME.."OUTLINE")
  68.         SetFont(SubZoneTextString,                  NORMAL, 25, MONOCHROME.."OUTLINE")
  69.         SetFont(PVPInfoTextString,                  NORMAL, 22, MONOCHROME.."OUTLINE")
  70.         SetFont(PVPArenaTextString,                 NORMAL, 22, MONOCHROME.."OUTLINE")
  71.         SetFont(CombatTextFont,                     COMBAT, 200, MONOCHROME.."OUTLINE") -- number here just increase the font quality.
  72.         SetFont(FriendsFont_Normal, NORMAL, self.db.general.fontSize)
  73.         SetFont(FriendsFont_Small, NORMAL, self.db.general.fontSize)
  74.         SetFont(FriendsFont_Large, NORMAL, self.db.general.fontSize)
  75.         SetFont(FriendsFont_UserText, NORMAL, self.db.general.fontSize)
  76.     end
  77. end




Sorry, it's just I felt ignored and frustrated, since I asked OP if he used ElvUI which he confirmed, while the others ignored my post

http://imgur.com/a/b4LVu

Followed your instructions. This file was not able to be renamed the way you did it. It was already named the way you renamed it to in your video. It did not prompt a CMD, and therefore nothing after that worked.

Like I said, very inexperienced.
  Reply With Quote