View Single Post
03-20-18, 02:31 AM   #2
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
Create your own or use already existing XML font template where all fonts are of the same desired size, then do the following:

Lua Code:
  1. for i = 1, NUM_CHAT_WINDOWS do
  2.     _G["ChatFrame"..i]:SetFontObject("FontTemplateName")
  3.     _G["ChatFrame"..i]:MakeFontObjectCustom()
  4. end

Using XML templates is important because atm only they support alphabets. Blizz use SetFont to update chat frame's font size, but it updates only 1(?) out of 5 alphabets.

I asked Dan in IRC to add SetRomanFont, SetKoreanFont, etc methods to font strings and objects (created via CreateFont) in addition to or in place of SetFont because it's quite needed in EU and OC regions, he liked the suggestion, but it won't be implemented soon because it's a low priority task for them and because entire fontstring-related system is kinda messed up and it's not that easy to work on >_>
__________________

Last edited by lightspark : 03-20-18 at 02:56 AM.
  Reply With Quote