TextService
Measures and processes text.
- Service
game:GetService("TextService")- Inherits
- Instance
- Replication
- Never
Behavior
TextService measures and processes text.
Summary
Members2
Methods2
Returns this instance if it is an ExecutionGroup.
GetTextSize(text: string, fontSize: number, weight: EnumItem, frameSize: Vector2, italic: boolean?, mono: boolean?): Vector2parallel readReturns the rendered text dimensions for the supplied text and font settings.
Methods
GetExecutionGroup
TextService:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
GetTextSize
TextService:GetTextSize(text: string, fontSize: number, weight: EnumItem, frameSize: Vector2, italic: boolean?, mono: boolean?): Vector2Returns the rendered text dimensions for the supplied text and font settings.
Inherited members
Inherited47
Instance47
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying