v0.13.7

Font

object type24 methodsavailable in: camelot

It has every method of FrameScriptObject, plus 24 of its own.

Inherits from

  1. Font · 24
  2. FrameScriptObject · 21

The number is each type's own documented methods. A Font has all of them.

Methods

In the emulator: 14 implemented, 10 guessed.

methodwhat it doesstatus
CopyFontObjectCopies the settings of another font object into this font. · by wowlua
(sourceFont: Font)
implemented
GetAlphaReturns the alpha of the text. · warcraft.wiki.gg ↗
(): number
implemented
GetFontReturns the basic font properties. · warcraft.wiki.gg ↗
(): (string, uiFontHeight, TBFFlags)
implemented
GetFontHeightReturn is either in uiUnits or internal height due to fixedHeight. · warcraft.wiki.gg ↗
(): number
guessed
GetFontObjectReturns the font object this font inherits from. · by wowlua
(): Font
guessed
GetFontObjectForAlphabetReturns the font used for an alphabet. · by wowlua
(alphabet: FontAlphabet): Font
guessed
GetIndentedWordWrapWhether wrapped lines in this font are indented. · by wowlua
(): boolean
guessed
GetJustifyHReturns the font's horizontal text alignment. · by wowlua
(): JustifyHorizontal
guessed
GetJustifyVReturns the font's vertical text alignment. · by wowlua
(): JustifyVertical
guessed
GetShadowColorReturns the color of the font's shadow as red, green, blue and alpha. · by wowlua
(): (number, number, number, number)
guessed
GetShadowOffsetReturns the offset of the font's shadow. · by wowlua
(): (number, number)
guessed
GetSpacingReturns the spacing between lines in the font. · by wowlua
(): number
guessed
GetTextColorReturns the font's text color as red, green, blue and alpha. · by wowlua
(): (number, number, number, number)
guessed
SetAlphaSets the alpha of the text. · warcraft.wiki.gg ↗
(alpha: number)
implemented
SetFontSets the basic font properties. · warcraft.wiki.gg ↗
(fontFile: string, height: uiFontHeight, flags: TBFFlags)
implemented
SetFontHeightPreserves all flags, does correct height conversion due to fixedHeight.
(height: number)
implemented
SetFontObjectSets the font object this font inherits from. · by wowlua
(font: Font)
implemented
SetIndentedWordWrapSets whether wrapped lines in this font are indented. · by wowlua
(wordWrap: boolean)
implemented
SetJustifyHSets the font's horizontal text alignment. · by wowlua
(justifyH: JustifyHorizontal)
implemented
SetJustifyVSets the font's vertical text alignment. · by wowlua
(justifyV: JustifyVertical)
implemented
SetShadowColorSets the color of the font's shadow. · by wowlua
(colorR: number, colorG: number, colorB: number, a: number?)
implemented
SetShadowOffsetSets the offset of the font's shadow. · by wowlua
(offsetX: number, offsetY: number)
implemented
SetSpacingSets the spacing between lines in the font. · by wowlua
(spacing: number)
implemented
SetTextColorSets the text color. · warcraft.wiki.gg ↗
(colorR: number, colorG: number, colorB: number, a: number?)
implemented

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: Blizzard's API documentation (Blizzard_APIDocumentationGenerated); warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.