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