Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
API FontInstance SetFont
The function is used to set the font to use for displaying text.
- String - path to the font file, relative to the WoW base directory.
- Number - size in points.
- Optional String - any comma-delimited combination of "OUTLINE", "THICKOUTLINE" and "MONOCHROME".
This method applies to multiple widgets that are derived from FontInstance; for instance, SimpleHTML, EditBox and FontString widgets all have similar methods.
FontString:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")
- Slouken posted on 2006-02-09: "...each font+font-size*fontstring-scale+flags combination generates a new instance of that font (along with associated textures and vertex data)."