I tried both
chatService.ChatWindowConfiguration.FontFace.Weight = Enum.FontWeight.Bold
chatService.ChatWindowConfiguration.FontFace.Bold = true
Neither of these change the general messages to be bold. Anyone knows?
I tried both
chatService.ChatWindowConfiguration.FontFace.Weight = Enum.FontWeight.Bold
chatService.ChatWindowConfiguration.FontFace.Bold = true
Neither of these change the general messages to be bold. Anyone knows?
You must overwrite the FontFace
property of ChatWindowConfiguration
itself.
local TextChatService = game:GetService("TextChatService")
local ChatWindowConfiguration = TextChatService.ChatWindowConfiguration
local fontFace = ChatWindowConfiguration.FontFace
fontFace.Bold = true
ChatWindowConfiguration.FontFace = fontFace
If you want more customizability, check out the Font
datatype.
Ah, that’s quite an interesting one. Haven’t had much time as of lately, but thanks for the solution!
Had this alternative solution first, but that didn’t work when combining bold and italics.
local chatService = game:GetService("TextChatService")
chatService.ChatWindowConfiguration.FontFace = Font.fromEnum(Enum.Font.SourceSansBold)
Now updated it to this:
local chatService = game:GetService("TextChatService")
local updatedFontFace = chatService.ChatWindowConfiguration.FontFace
updatedFontFace = Font.fromEnum(Enum.Font.SourceSans)
updatedFontFace.Bold = true
chatService.ChatWindowConfiguration.FontFace = updatedFontFace
or alternatively:
local chatService = game:GetService("TextChatService")
local updatedFontFace = chatService.ChatWindowConfiguration.FontFace
updatedFontFace.Family = "rbxasset://fonts/families/SourceSansPro.json"
updatedFontFace.Bold = true
chatService.ChatWindowConfiguration.FontFace = updatedFontFace
Works well - thanks again! ^^
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.