Font

From Warcraft Wiki
Jump to navigation Jump to search
Instantiation CreateFont()

Methods

Font:CopyFontObject(sourceFont)
Font:GetAlpha() : alpha
Font:SetAlpha(alpha)
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.
FrameScriptObject:GetName() : name - Returns the object's global name.
FrameScriptObject:GetObjectType() : objectType - Returns the object's widget type.
FrameScriptObject:IsForbidden() : isForbidden - Returns true if insecure interaction with the object is forbidden.
FrameScriptObject:IsObjectType(objectType) : isType - Returns true if the object belongs to a given widget type or its subtypes.
FrameScriptObject:SetForbidden() #protected - Sets the object to be forbidden from an insecure execution path.

Templates

FrameXML/Fonts.xml defines limited localization-dependent character sets, intended only for inheriting into other Fonts. {Fonts.xml at Townlong-YakFrameXML/Fonts.xml at GitHub}
SharedXML/SharedFontStyles.xml defines the traditional game fonts. {SharedFontStyles.xml at Townlong-YakSharedXML/SharedFontStyles.xml at GitHub}
FrameXML/FontStyles.xml defines additional fonts for certain use cases. {FontStyles.xml at Townlong-YakFrameXML/FontStyles.xml at GitHub}