wowpedia
Main Menu


Sets the font instance's basic font properties.

success = FontInstance:SetFont(fontFile, height, flags)

Arguments

fontFile
string - Path to the font file.
height
number - Size in points.
flags
string - Any comma-delimited combination of OUTLINE, THICK and MONOCHROME; otherwise must be at least an empty string (except for FontString objects).

Returns

success
boolean? - True if fontFile refers to a valid font, otherwise returns nil.

Example

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

Patch changes

Dragonflight Patch 10.0.0 (2022-10-25): The flags parameter is no longer optional.