Thread Tools Display Modes
04/09/15, 04:39 PM   #1
blakbird
 
blakbird's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 30
Change chat font and font style

Is there an addon that has this option? The chat addons I have tried only allow the user to change the font and font style in the edit box. I use a flat, minimalistic UI that uses no shadow on any of the fonts. Right now, the chat window is the only part of the UI that has shadows on the fonts and it drives me crazy.
  Reply With Quote
04/09/15, 04:52 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by blakbird View Post
Is there an addon that has this option? The chat addons I have tried only allow the user to change the font and font style in the edit box. I use a flat, minimalistic UI that uses no shadow on any of the fonts. Right now, the chat window is the only part of the UI that has shadows on the fonts and it drives me crazy.
Maybe Pawksickles can help.
  Reply With Quote
04/09/15, 07:16 PM   #3
blakbird
 
blakbird's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 30
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.
  Reply With Quote
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
04/09/15, 09:16 PM   #5
blakbird
 
blakbird's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 30
Thank you so much!!!
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Change chat font and font style

Thread Tools
Display Modes

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