Roblox-File-Format/Plugins/GenerateApiDump/LegacyFonts.lua

15 lines
276 B
Lua
Raw Normal View History

2022-12-16 20:22:34 +00:00
--!strict
local LegacyFonts = {} :: {
[string]: Enum.Font,
}
for i, font: Enum.Font in Enum.Font:GetEnumItems() do
if font ~= Enum.Font.Unknown then
local fontFace = Font.fromEnum(font)
LegacyFonts[tostring(fontFace)] = font
end
end
return table.freeze(LegacyFonts)