WoWInterface - View Single Post - SetFont size help please
View Single Post
01-09-14, 04:30 AM   #4
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
There is a maximum absolute size at which WoW will render a font string. For most fonts, this maximum absolute size (in pixels) is reached at a font size (I guess it's points?) of 30-32. If your font is topping out at 22, it's probably oddly designed, with lots of whitespace around each character. Without seeing the actual font file you are using though, I can't say for sure whether that is the problem, but a value of 48 or 9000 will have the same visual effect as a value of 32 even for a "normal" font.

Calling SetFont overrides any base font object you set, either by passing a font object to CreateFontstring, or by calling SetFontObject explicitly. Once SetFont is called, your fontstring is no longer considered to "have" a font object (though GetFontObject might still return something) and changes to the font object will no longer propigate to your fontstring, though any properties (like shadows) you don't override will be retained. So, passing a font object to CreateFontstring is not the cause of OP's problem.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote