FontInstance

From Warcraft Wiki
Jump to navigation Jump to search
Links

This abstract widget is not explicitly in Blizzard documentation but is part of Font, FontString, EditBox, MessageFrame, SimpleHTML.

Defined Methods

FontInstance:GetFont() : fontFile, height, flags - Returns the font path, height, and flags.
FontInstance:GetFontObject() : font - Returns the "parent" font object.
FontInstance:GetIndentedWordWrap() : wordWrap - Returns the indentation when text wraps beyond the first line.
FontInstance:GetJustifyH() : justifyH - Returns the horizontal text justification.
FontInstance:GetJustifyV() : justifyV - Returns the vertical text justification.
FontInstance:GetShadowColor() : colorR, colorG, colorB, colorA - Sets the text shadow color.
FontInstance:GetShadowOffset() : offsetX, offsetY - Returns the text shadow offset.
FontInstance:GetSpacing() : spacing - Returns the line spacing.
FontInstance:GetTextColor() : colorR, colorG, colorB, colorA - Returns the default text color.
FontInstance:SetFont(fontFile, height, flags) - Sets the basic font properties.
FontInstance:SetFontObject(font) - Sets the "parent" font object from which this object inherits properties.
FontInstance:SetIndentedWordWrap(wordWrap) - Sets the indentation when text wraps beyond the first line.
FontInstance:SetJustifyH(justifyH) - Sets the horizontal text justification
FontInstance:SetJustifyV(justifyV) - Sets the vertical text justification.
FontInstance:SetShadowColor(colorR, colorG, colorB [, a]) - Returns the color of text shadow.
FontInstance:SetShadowOffset(offsetX, offsetY) - Sets the text shadow offset.
FontInstance:SetSpacing(spacing) - Sets the spacing between lines of text in the object.
FontInstance:SetTextColor(colorR, colorG, colorB [, a]) - Sets the default text color.