WoW:API FontInstance SetFont: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{widgetmethod}})
(replaced stub contents with the old contents of API FontString SetFont)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}
{{stub/api}}


Sets the font to use, returns 1 if the path was valid, nil otherwise (no change occurs)
FontString:SetFont("font",size[,"flags"]) - Sets the font to use for display in the fontstring.
<br>
 
<br>example: GameFontNormal:SetFont("Interface\\AddOns\\DiscordFrameModifier\\myriad.ttf",12)
"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)."

Revision as of 20:55, 28 June 2006

Widget API ← FontInstance < 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)."