Thread Tools Display Modes
10-23-14, 02:19 PM   #1
Out1aw
A Theradrim Guardian
 
Out1aw's Avatar
Join Date: Jan 2014
Posts: 65
Custom fonts on Russian locale

I just can't get them to work since 6.0.2. They do work if I change the game's language to English. Everything else (i.e. custom textures) works fine though.



  Reply With Quote
10-23-14, 03:31 PM   #2
Out1aw
A Theradrim Guardian
 
Out1aw's Avatar
Join Date: Jan 2014
Posts: 65
I figured out what was wrong: LSM:Register() now requires 4th argument for fonts to work on non-western locales.

lib.LOCALE_BIT_koKR = 1
lib.LOCALE_BIT_ruRU = 2
lib.LOCALE_BIT_zhCN = 4
lib.LOCALE_BIT_zhTW = 8
lib.LOCALE_BIT_western = 128
If your font contains korean, cyrillic and latin symbols (or more like if you want the font to be available on RU/KR/EN/DE/FR/etc. locales), your 4th argument must be 131 (128 + 2 + 1).

An example:
LSM:Register("font", "qfont", [[Interface\AddOns\nibRealUI\Fonts\qfont.ttf]], 2)
  Reply With Quote
10-23-14, 03:48 PM   #3
Gethe
RealUI Developer
 
Gethe's Avatar
Premium Member
Featured
Join Date: Sep 2008
Posts: 942
Thanks, i'll get this fixed.
__________________
Knowledge = Power; Be OP

  Reply With Quote

WoWInterface » Featured Projects » RealUI » Custom fonts on Russian locale


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