ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Change chat font and font style (https://www.esoui.com/forums/showthread.php?t=4562)

blakbird 04/09/15 04:39 PM

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.

Garkin 04/09/15 04:52 PM

Quote:

Originally Posted by blakbird (Post 20345)
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.

blakbird 04/09/15 07:16 PM

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.

Garkin 04/09/15 08:57 PM

Quote:

Originally Posted by blakbird (Post 20348)
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.

blakbird 04/09/15 09:16 PM

Thank you so much!!!


All times are GMT -6. The time now is 02:00 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI