World of Warcraft Forever API · Font.md, for your AI
Font (global functions)
3 functions, 3 tables, 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
CreateFontFamily
fontFamily = CreateFontFamily(name, members)
Arguments
name | cstring | |
|---|---|---|
members | CreateFontFamilyMemberInfo[] |
Returns
fontFamily | SimpleFont |
|---|
GetFontInfo
info = GetFontInfo(fontObject)
Arguments
fontObject | SimpleFont |
|---|
Returns
info | FontScriptInfo may be nil |
|---|
GetFonts
fontNames = GetFonts()
Returns
fontNames | cstring[] |
|---|
Tables
CreateFontFamilyMemberInfo structure
alphabet | FontAlphabet | |
|---|---|---|
file | cstring | |
height | uiFontHeight | |
flags | TBFFlags |
FontScriptInfo structure
color | colorRGBA | |
|---|---|---|
height | number | |
outline | string | |
shadow | FontScriptShadowInfo may be nil | |
fontObject | SimpleFont | |
canBeUserScaled | bool |
FontScriptShadowInfo structure
color | colorRGBA | |
|---|---|---|
x | number | |
y | number |