Improve QuestFrame font handling
All checks were successful
forgejo/Czech Quests/addon/pipeline/head This commit looks good
All checks were successful
forgejo/Czech Quests/addon/pipeline/head This commit looks good
This commit is contained in:
parent
d90715c2cc
commit
7a12abeda3
8 changed files with 96 additions and 181 deletions
|
@ -15,6 +15,12 @@ local function CreateCzechFont(frame, name, size, flags)
|
|||
end
|
||||
addon.API.CreateCzechFont = CreateCzechFont
|
||||
|
||||
local function UpdateCzechFont(FontString, name, size)
|
||||
local _, _, flags = FontString:GetFont()
|
||||
FontString:SetFont(FontPath .. name, size, flags)
|
||||
end
|
||||
addon.API.UpdateCzechFont = UpdateCzechFont
|
||||
|
||||
local function GetFontContainer()
|
||||
local container = Settings.CreateControlTextContainer()
|
||||
container:Add("morpheus_cz.ttf", "Morpheus (cz)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue