Wowpedia
Advertisement
Wowpedia
240,425
pages

Changes the font for displaying text.

FontInstance:SetFont(font, size [, flags])

Arguments

font 
string - Path to the font file.
size 
number - Size in points.
flags 
string?Optional. Could be nil. - Any comma-delimited combination of "OUTLINE", "THICKOUTLINE" and "MONOCHROME".

Details

  • Developer remarks from 2006 discuss the inner workings of SetFont: "...each font+font-size*fontstring-scale+flags combination generates a new instance of that font (along with associated textures and vertex data)."[1]
  • SetFont() overrides any subsequent calls to FontInstance:SetFontObject()

Example

fontString:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")

Patch changes

References

Advertisement