diff --git a/IceElement.lua b/IceElement.lua index 02aa06f..f6d61bb 100644 --- a/IceElement.lua +++ b/IceElement.lua @@ -381,13 +381,10 @@ function IceElement.prototype:FontFactory(size, frame, font, flags) fontString = font end - local fontFace = SML:Fetch('font', self.settings.fontFamily) - if not fontFace then - fontFace = "Fonts\\FRIZQT__.TTF" + if not fontString:SetFont(SML:Fetch('font', self.settings.fontFamily), size, flags) then + fontString:SetFont("Fonts\\FRIZQT__.TTF", size, flags) end - fontString:SetFont(fontFace, size, flags) - if not (flags) then fontString:SetShadowColor(0, 0, 0, 1) fontString:SetShadowOffset(1, -1)