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