View Single Post
04/09/15, 08:57 PM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by blakbird View Post
Thank you for the link! That addon allows me to change the font, but the shadow remains even after setting the decoration to "normal". I tried other decorations for the chat font to see if it was just "normal" that didn't work and none of them worked either.
Hm, it seems that you're right. Chat system does not follow settings and automatically sets decoration "soft-shadow-thin" for font size <= 14 and "soft-shadow-thick" for sizes > 14.

If you want to change decoration to "none", you will need to redefine function SharedChatContainer:SetFontSize(tabIndex, fontSize).

Lua Code:
  1. function SharedChatContainer:SetFontSize(tabIndex, fontSize)
  2.     local window = self.windows[tabIndex]
  3.     if window and fontSize ~= window.fontSize then
  4.         window.fontSize = fontSize
  5.  
  6.         local face = ZoFontChat:GetFontInfo()
  7.         local font = ("%s|%s"):format(face, fontSize)
  8.  
  9.         window.buffer:SetFont(font)
  10.     end
  11. end

Just open Pawksickles.lua in text editor and copy&paste code above to the very end of the file.
  Reply With Quote