Skip to content

Commit

Permalink
Add fallback fonts for languages/characters
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Aug 16, 2015
1 parent 1de0f11 commit c6cf6b5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
21 changes: 21 additions & 0 deletions Fonts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Ui xmlns='http://www.blizzard.com/wow/ui/'>
<FontFamily name='SempliceNormal' virtual='true'>
<Member alphabet='roman'>
<Font font='Interface\AddOns\Inomena\assets\semplice.ttf' height='8' outline='NORMAL' monochrome='true'/>
</Member>
<Member alphabet='korean'>
<Font font='Fonts\2002.ttf' height='11' outline='NORMAL' monochrome='true'/>
</Member>
<Member alphabet='simplifiedchinese'>
<Font font='Fonts\ARKai_T.ttf' height='10' outline='NORMAL' monochrome='true'/>
</Member>
<Member alphabet='traditionalchinese'>
<Font font='Fonts\blei00d.ttf' height='10' outline='NORMAL' monochrome='true'/>
</Member>
<Member alphabet='russian'>
<Font font='Fonts\FRIZQT___CYR.ttf' height='11' outline='NORMAL'/>
</Member>
</FontFamily>
<Font name='SempliceLeft' inherits='SempliceNormal' justifyH='LEFT' virtual='true'/>
<Font name='SempliceRight' inherits='SempliceNormal' justifyH='RIGHT' virtual='true'/>
</Ui>
1 change: 1 addition & 0 deletions Inomena.toc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## Notes: Personal UI
## SavedVariablesPerCharacter: InomenaCVars

Fonts.xml
Templates.xml

Inomena.xml
5 changes: 2 additions & 3 deletions modules/actionbars/actionbutton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function F:SkinActionButton(Button, petButton, leaveButton)
HotKey:SetParent(StringParent)
HotKey:ClearAllPoints()
HotKey:SetPoint('BOTTOMRIGHT', Button, 0, 1)
HotKey:SetFont(C.Font, 8, 'OUTLINEMONOCHROME')
HotKey:SetFontObject('SempliceNormal')

local NormalTexture = Button.NormalTexture
NormalTexture:SetTexture(nil)
Expand All @@ -75,8 +75,7 @@ function F:SkinActionButton(Button, petButton, leaveButton)
Count:SetParent(StringParent)
Count:ClearAllPoints()
Count:SetPoint('TOPLEFT', Button, 3, -3)
Count:SetFont(C.Font, 8, 'OUTLINEMONOCHROME')
Count:SetJustifyH('LEFT')
Count:SetFontObject('SempliceLeft')

local Icon = Button.icon
Icon:SetTexCoord(0.08, 0.92, 0.08, 0.92)
Expand Down
6 changes: 2 additions & 4 deletions modules/auras/buffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ Header:HookScript('OnAttributeChanged', function(self, name, Button)
Texture:SetTexCoord(0.08, 0.92, 0.08, 0.92)
Button:SetNormalTexture(Texture)

local Duration = Button:CreateFontString()
local Duration = Button:CreateFontString(nil, nil, 'SempliceNormal')
Duration:SetPoint('TOPLEFT', 1, -1)
Duration:SetFont(C.Font, 8, 'OUTLINEMONOCHROME')
Button:SetFontString(Duration)

local Count = Button:CreateFontString()
local Count = Button:CreateFontString(nil, nil, 'SempliceNormal')
Count:SetPoint('BOTTOMRIGHT', -1, 1)
Count:SetFont(C.Font, 8, 'OUTLINEMONOCHROME')
Button.Count = Count
end)

Expand Down

0 comments on commit c6cf6b5

Please sign in to comment.