mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- Handling late font registration by using a default font while we wait for a callback.
This commit is contained in:
@ -381,7 +381,13 @@ function IceElement.prototype:FontFactory(size, frame, font, flags)
|
||||
fontString = font
|
||||
end
|
||||
|
||||
fontString:SetFont(SML:Fetch('font', self.settings.fontFamily), size, flags)
|
||||
local fontFace = SML:Fetch('font', self.settings.fontFamily)
|
||||
if not fontFace then
|
||||
fontFace = "Fonts\\FRIZQT__.TTF"
|
||||
end
|
||||
|
||||
fontString:SetFont(fontFace, size, flags)
|
||||
|
||||
if not (flags) then
|
||||
fontString:SetShadowColor(0, 0, 0, 1)
|
||||
fontString:SetShadowOffset(1, -1)
|
||||
|
Reference in New Issue
Block a user