WoW:API FontString SetFont: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Added note about font combinations)
({{widgetmethod}})
Line 1: Line 1:
{{widgetmethod}}
FontString:SetFont("font",size[,"flags"]) - Sets the font to use for display in the fontstring.
FontString:SetFont("font",size[,"flags"]) - Sets the font to use for display in the fontstring.


Line 12: Line 14:
From Slouken, posted 2006-02-09
From Slouken, posted 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)."
"...each font+font-size*fontstring-scale+flags combination generates a new instance of that font (along with associated textures and vertex data)."
{{template:WoW API}}

Revision as of 11:56, 10 June 2006

Widget API ← FontString < SetFont

FontString:SetFont("font",size[,"flags"]) - Sets the font to use for display in the fontstring.

"font" is the name of a font size is the size of the font "flags" are any of OUTLINE, THICKOUTLINE and/or MONOCHROME

Usage

FontString:SetFont("FRIZQT__.TTF",11,"OUTLINE, MONOCHROME")


Notes:

From Slouken, posted 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)."