WowAddons

World of Warcraft Forever API · SimpleFontAPI.md, for your AI

SimpleFontAPI (widget methods)

24 functions, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

CopyFontObject

self:CopyFontObject(sourceFont)

Arguments

sourceFontSimpleFont

GetAlpha

alpha = self:GetAlpha()

Returns

alphaSingleColorValue

GetFont

fontFile, height, flags = self:GetFont()

Returns

fontFilecstring
heightuiFontHeight
flagsTBFFlags

GetFontHeight

height = self:GetFontHeight()

Return is either in uiUnits or internal height due to fixedHeight.

Returns

heightnumber

GetFontObject

font = self:GetFontObject()

Returns

fontSimpleFont

GetFontObjectForAlphabet

font = self:GetFontObjectForAlphabet(alphabet)

Arguments

alphabetFontAlphabet

Returns

fontSimpleFont

GetIndentedWordWrap

wordWrap = self:GetIndentedWordWrap()

Returns

wordWrapbool

GetJustifyH

justifyH = self:GetJustifyH()

Returns

justifyHJustifyHorizontal

GetJustifyV

justifyV = self:GetJustifyV()

Returns

justifyVJustifyVertical

GetShadowColor

colorR, colorG, colorB, colorA = self:GetShadowColor()

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetShadowOffset

offsetX, offsetY = self:GetShadowOffset()

Returns

offsetXnumber
offsetYnumber

GetSpacing

spacing = self:GetSpacing()

Returns

spacinguiUnit

GetTextColor

colorR, colorG, colorB, colorA = self:GetTextColor()

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

SetAlpha

self:SetAlpha(alpha)

Arguments

alphaSingleColorValue

SetFont

self:SetFont(fontFile, height, flags)

Arguments

fontFilecstring
heightuiFontHeight
flagsTBFFlags

SetFontHeight

self:SetFontHeight(height)

Preserves all flags, does correct height conversion due to fixedHeight.

Arguments

heightnumber

SetFontObject

self:SetFontObject(font)

Arguments

fontSimpleFont

SetIndentedWordWrap

self:SetIndentedWordWrap(wordWrap)

Arguments

wordWrapbool

SetJustifyH

self:SetJustifyH(justifyH)

Arguments

justifyHJustifyHorizontal

SetJustifyV

self:SetJustifyV(justifyV)

Arguments

justifyVJustifyVertical

SetShadowColor

self:SetShadowColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetShadowOffset

self:SetShadowOffset(offsetX, offsetY)

Arguments

offsetXnumber
offsetYnumber

SetSpacing

self:SetSpacing(spacing)

Arguments

spacinguiUnit

SetTextColor

self:SetTextColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows