make font size limiting for SetFont
This commit is contained in:
@@ -320,7 +320,7 @@ local function modifyThumbnail(parent, borderframe, data, fullModify, size)
|
||||
size = size or 28;
|
||||
|
||||
local fontPath = SharedMedia:Fetch("font", data.font) or data.font;
|
||||
text:SetFont(fontPath, data.fontSize, data.outline and "OUTLINE" or nil);
|
||||
text:SetFont(fontPath, data.fontSize < 33 and data.fontSize or 33, data.outline and "OUTLINE" or nil);
|
||||
text:SetTextHeight(data.fontSize);
|
||||
text:SetText(data.displayText);
|
||||
text:SetTextColor(data.color[1], data.color[2], data.color[3], data.color[4]);
|
||||
|
||||
Reference in New Issue
Block a user