TextService¶
Service internally responsible for handling the display of text.
Description¶
TextService is internally responsible for handling the display of text.
Inheritance¶
Object → Instance → TextService
Nova inheritance: Instance → TextService
Methods¶
GetTextSize Supported Function Computes the Vector2 dimensions (in pixels) that will be taken up with text when using the specified formatting parameters and size constraints.
Computes the Vector2 dimensions (in pixels) that will be taken up with text when using the specified formatting parameters and size constraints.
This method is a useful alternative to the TextBounds property of the
TextLabel/TextButton objects, since GetTextSize() can
calculate the dimensions required by a particular text string in a
TextLabel or TextButton before such an object is created
or text property set.
This method is limited to fonts under Font. To access more fonts under Font, use GetTextBoundsAsync() instead.
Roblox reference signature
RobloxScriptSecurityInherited members¶
Inherited from Instance: 8 properties, 36 methods, 7 events. They are documented on the base class page.
7 modern Roblox member(s) are not implemented yet — expand to inspect
Members declared by Roblox's TextService class (or by a missing base class) that Nova does not expose. Use this list to scope a migration; the compatibility guide has the recommended workaround.
Methods¶
| Member | Signature | Status | Notes | Flags |
|---|---|---|---|---|
FilterAndTranslateStringAsync |
TextService:FilterAndTranslateStringAsync(stringToFilter: string, fromUserId: int64, targetLocales: Array, textContext: TextFilterContext = PrivateChat): TextFilterTranslatedResult |
Not yet | Filters and translates a string. | Yields |
FilterStringAsync |
TextService:FilterStringAsync(stringToFilter: string, fromUserId: int64, textContext: TextFilterContext = PrivateChat): TextFilterResult |
Not yet | Filters a string being received from a user and returns a | Yields |
GetFamilyInfoAsync |
TextService:GetFamilyInfoAsync(assetId: ContentId): Dictionary |
Not yet | Returns a table containing the name and faces of a font family. | Yields |
GetFontMemoryData |
TextService:GetFontMemoryData(): Dictionary |
Not yet | — | RobloxScriptSecurity |
GetTextBoundsAsync |
TextService:GetTextBoundsAsync(params: GetTextBoundsParams): Vector2 |
Not yet | Computes the Vector2 dimensions (in pixels) that will be taken up with text when using a GetTextBoundsParams object. | Yields |
GetTextSizeOffsetAsync |
TextService:GetTextSizeOffsetAsync(fontSize: int, font: Font): float |
Not yet | Returns the offset used to up-scale text based on the current GuiService.PreferredTextSize setting. | Yields |
SetResolutionScale |
TextService:SetResolutionScale(scale: float): null |
Not yet | — | RobloxScriptSecurity |
Roblox reference: TextService
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.