Roblox API Reference

TextService On DevHub

Summary

This class is not creatable. An object of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
This item is not replicated. Its interface does not cross the network boundary.

Tags: [NotCreatable, Service, NotReplicated]

Inherits (1)

Member index (7)

Type Member History
Instance FilterAndTranslateStringAsync (string stringToFilter, int64 fromUserId, Array targetLocales, TextFilterContext textContext = PrivateChat) 576
Instance FilterStringAsync (string stringToFilter, int64 fromUserId, TextFilterContext textContext = PrivateChat) 293 322 341
Dictionary GetFamilyInfoAsync (Content assetId) 517
Dictionary GetFontMemoryData () 552
Vector2 GetTextBoundsAsync (GetTextBoundsParams params) 529
Vector2 GetTextSize (string string, int fontSize, Font font, Vector2 frameSize) 216 274
null SetResolutionScale (float scale) 452 573
57 members inherited from Instance

History

Members

FilterAndTranslateStringAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
stringToFilter string none
fromUserId int64 none
targetLocales Array none
textContext TextFilterContext PrivateChat

History

Tags: [Yields]

FilterStringAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
stringToFilter string none
fromUserId int64 none
textContext TextFilterContext PrivateChat

History

Tags: [Yields]

GetFamilyInfoAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
assetId Content none

History

Tags: [Yields]

GetFontMemoryData On DevHub

Name Type Default
No parameters.

History

GetTextBoundsAsync On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
params GetTextBoundsParams none

History

Tags: [Yields]

GetTextSize On DevHub

Name Type Default
string string none
fontSize int none
font Font none
frameSize Vector2 none

History

SetResolutionScale On DevHub

Name Type Default
scale float none

History

Relevant classes (2)

Relevant enums (2)