The Font object is the only type of object that is not attached to a parent widget; indeed, its purpose is to be shared between other objects that share font characteristics. In this way, changes to the Font object will update the text appearance of all text objects that have it set as their Font using :SetFontObject()
. This allows a coder to maintain a consistent appearance between UI elements, as well as simplifying the resourcs and work required to update multiple text-based UI elements.
Defined Methods
- Font:GetIndentedWordWrap() - This function is not yet documented
- Font:SetIndentedWordWrap() - This function is not yet documented
Inherited Methods
- filename, fontHeight, flags = Font:GetFont() - Returns the font instance's basic font properties
- font = Font:GetFontObject() - Returns the `Font` object from which the font instance's properties are inherited
- justify = Font:GetJustifyH() - Returns the font instance's horizontal text alignment style
- justify = Font:GetJustifyV() - Returns the font instance's vertical text alignment style
- name = Font:GetName() - Returns the widget object's name
- type = Font:GetObjectType() - Returns the object's widget type
- shadowR, shadowG, shadowB, shadowAlpha = Font:GetShadowColor() - Returns the color of the font's text shadow
- xOffset, yOffset = Font:GetShadowOffset() - Returns the offset of the font instance's text shadow from its text
- spacing = Font:GetSpacing() - Returns the font instance's amount of spacing between lines
- textR, textG, textB, textAlpha = Font:GetTextColor() - Returns the font instance's default text color
- isType = Font:IsObjectType("type") - Returns whether the object belongs to a given widget type
- isValid = Font:SetFont("filename", fontHeight, "flags") - Sets the font instance's basic font properties
- Font:SetFontObject(object) or Font:SetFontObject("name") - Sets the `Font` object from which the font instance's properties are inherited
- Font:SetJustifyH("justify") - Sets the font instance's horizontal text alignment style
- Font:SetJustifyV("justify") - Sets the font instance's vertical text alignment style
- Font:SetShadowColor(shadowR, shadowG, shadowB, shadowAlpha) - Sets the color of the font's text shadow
- Font:SetShadowOffset(xOffset, yOffset) - Sets the offset of the font instance's text shadow from its text
- Font:SetSpacing(spacing) - Sets the font instance's amount of spacing between lines
- Font:SetTextColor(textR, textG, textB, textAlpha) - Sets the font instance's default text color