TextService
This class is not replicated. Its interface does not cross the network boundary.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
Memory category | Instances |
---|
Member index 7
History 17
- 607 Change ReturnType of FilterStringAsync from Instance to TextFilterResult
- 607 Change ReturnType of FilterAndTranslateStringAsync from Instance to TextFilterTranslatedResult
- 576 Add FilterAndTranslateStringAsync
- 573 Change ReturnType of SetResolutionScale from void to null
- 552 Add GetFontMemoryData
- 529 Add GetTextBoundsAsync
- 517 Add GetFamilyInfoAsync
- 462 Change ThreadSafety of SetResolutionScale from to Unsafe
- 462 Change ThreadSafety of GetTextSize from to Unsafe
- 462 Change ThreadSafety of FilterStringAsync from to Unsafe
- 452 Add SetResolutionScale
- 341 Change Parameters of FilterStringAsync from (stringToFilter: string, fromUserId: int64) to (stringToFilter: string, fromUserId: int64, textContext: TextFilterContext = PrivateChat)
- 322 Change Parameters of FilterStringAsync from (stringToFilter: string, fromUserId: int) to (stringToFilter: string, fromUserId: int64)
- 293 Add FilterStringAsync
- 274 Change Security of GetTextSize from RobloxScriptSecurity to None
- 216 Add GetTextSize
- 47 Add TextService
Members 7
FilterAndTranslateStringAsync
Parameters (4) | Default | |
---|---|---|
stringToFilter | string | |
fromUserId | int64 | |
targetLocales | Array | |
textContext | TextFilterContext | PrivateChat |
Returns (1) | ||
TextFilterTranslatedResult |
This function yields. It will block the calling thread until completion.
Thread safety | Unsafe |
---|
History 2
- 607 Change ReturnType of FilterAndTranslateStringAsync from Instance to TextFilterTranslatedResult
- 576 Add FilterAndTranslateStringAsync
FilterStringAsync
Parameters (3) | Default | |
---|---|---|
stringToFilter | string | |
fromUserId | int64 | |
textContext | TextFilterContext | PrivateChat |
Returns (1) | ||
TextFilterResult |
This function yields. It will block the calling thread until completion.
Thread safety | Unsafe |
---|
History 5
- 607 Change ReturnType of FilterStringAsync from Instance to TextFilterResult
- 462 Change ThreadSafety of FilterStringAsync from to Unsafe
- 341 Change Parameters of FilterStringAsync from (stringToFilter: string, fromUserId: int64) to (stringToFilter: string, fromUserId: int64, textContext: TextFilterContext = PrivateChat)
- 322 Change Parameters of FilterStringAsync from (stringToFilter: string, fromUserId: int) to (stringToFilter: string, fromUserId: int64)
- 293 Add FilterStringAsync
GetFamilyInfoAsync
Parameters (1) | ||
---|---|---|
assetId | Content | |
Returns (1) | ||
Dictionary |
This function yields. It will block the calling thread until completion.
Thread safety | Unsafe |
---|
History 1
GetFontMemoryData
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Dictionary |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
- 552 Add GetFontMemoryData
GetTextBoundsAsync
Parameters (1) | ||
---|---|---|
params | GetTextBoundsParams | |
Returns (1) | ||
Vector2 |
This function yields. It will block the calling thread until completion.
Thread safety | Unsafe |
---|
History 1
GetTextSize
Parameters (4) | ||
---|---|---|
string | string | |
fontSize | int | |
font | Font | |
frameSize | Vector2 | |
Returns (1) | ||
Vector2 |
Thread safety | Unsafe |
---|
History 3
- 462 Change ThreadSafety of GetTextSize from to Unsafe
- 274 Change Security of GetTextSize from RobloxScriptSecurity to None
- 216 Add GetTextSize
SetResolutionScale
Parameters (1) | ||
---|---|---|
scale | float | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of SetResolutionScale from void to null
- 462 Change ThreadSafety of SetResolutionScale from to Unsafe
- 452 Add SetResolutionScale