Originally Posted by VincentSDSH
I tested Legible Mail (link in signature) and it seemed to work fine.
|
Pre created xml font templates:
Code:
<Font name="MyGameFont_Small" font="Interface\AddOns\MyAddon\Media\Fonts\Gothic.ttf" outline="NONE" virtual="true">
<FontHeight val="8"/>
<Shadow>
<Offset x="1" y="-1" />
<Color r="0" g="0" b="0"/>
</Shadow>
</Font>
<Font name="MyGameFont_Medium" font="Interface\AddOns\MyAddon\Media\Fonts\Gothic.ttf" outline="NONE" virtual="true">
<FontHeight val="10"/>
<Shadow>
<Offset x="1" y="-1" />
<Color r="0" g="0" b="0"/>
</Shadow>
</Font>
Applying the new font:
Lua Code:
function SetUIFont()
local index = usedFont
local name, small, medium = unpack(FONTLIST[index])
local path = [[Interface\AddOns\MyAddon\Media\Fonts\]]..name
-- change font
MyGameFont_Small:SetFont(path,small,"NONE")
MyGameFont_Medium:SetFont(path,medium,"NONE")
end
Doesn't work, which is pretty weird...