- Handling late font registration by using a default font while we wait for a callback.

This commit is contained in:
rokiyo
2010-10-31 16:42:21 +00:00
parent 2645a6292a
commit 2b481e2ca3

View File

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