From 674ca6b24eb245cd1707b94bcfcfd5150fe40f13 Mon Sep 17 00:00:00 2001 From: Ryan Luu Date: Mon, 12 Jan 2026 03:43:26 -0800 Subject: [PATCH] Fix setTextFont using incorrect Enum Corrects setTextFont's FontStyle parameter to use the proper FontStyle Enum instead of FontSize --- src/Types.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Types.lua b/src/Types.lua index 922488c..b20eba6 100644 --- a/src/Types.lua +++ b/src/Types.lua @@ -241,7 +241,7 @@ type Methods = { a font ID (such as 12187370928), or font family link (such as "rbxasset://fonts/families/Sarpanch.json"). ]] - function(self: Icon, font: string | Enum.Font, fontWeight: Enum.FontWeight?, fontStyle: Enum.FontSize?, iconState: IconState?): Icon + function(self: Icon, font: string | Enum.Font, fontWeight: Enum.FontWeight?, fontStyle: Enum.FontStyle?, iconState: IconState?): Icon return nil :: any end ), @@ -474,4 +474,4 @@ export type StaticIcon = { ), } & StaticFunctions -return {} \ No newline at end of file +return {}