- A more fool-proof method for late font registration.

This commit is contained in:
rokiyo
2010-10-31 18:20:42 +00:00
parent 2b481e2ca3
commit ad69dbee24

View File

@ -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)