Quantcast WoWInterface - View Single Post - Fonts not showing on Russian client (SharedMediaAdditionalFonts)
View Single Post
09-28-16, 03:30 PM   #4
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 759
Thanks for clearing this up Phanx! So the current code I have is:


Code:
if not SharedMediaAdditionalFonts then return end
local revision = tonumber(string.sub("$Revision: 63551 $", 12, -3))
-- FONTS:
SharedMediaAdditionalFonts.revision = (revision > SharedMediaAdditionalFonts.revision) and revision or SharedMediaAdditionalFonts.revision
SharedMediaAdditionalFonts:Register("font", "Star Cine", [[Interface\Addons\SharedMediaAdditionalFonts\fonts\starcine.ttf]])

Coud I simply make it like this?
Code:
if not SharedMediaAdditionalFonts then return end
local revision = tonumber(string.sub("$Revision: 63551 $", 12, -3))
SharedMediaAdditionalFonts.revision = (revision > SharedMediaAdditionalFonts.revision) and revision or SharedMediaAdditionalFonts.revision
local LSM = LibStub("LibSharedMedia-3.0")
-- FONTS:
SharedMediaAdditionalFonts:Register("font", "Star Cine", "Interface\Addons\SharedMediaAdditionalFonts\fonts\starcine.ttf", bit.bor(LSM.LOCALE_BIT_western, LSM.LOCALE_BIT_ruRU))
Because it dosen't work :_(
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 09-28-16 at 03:43 PM.
  Reply With Quote