Font

Up and coming: shot check knows this datatype and its members today, and programs run it once the native runtime lands.

Up and coming

The typeface for text in a window: the UI font, its semibold, the code font, or a font file of your own.

Font.UI, Font.UISemibold and Font.Mono are the built-in UI and code fonts, and Font.fromFile(path) loads a font file. Japanese, emoji and symbols fall back to the Windows fonts. A LogView uses Font.Mono by default.

Passes shot check todayLuau
local function example(x : Font)
	local label = Instance.new("TextLabel")
	label.Font = Font.Mono
end

Constructors

NameArgumentsReturnsDescription
Font.fromFile(path: string)Font

Constants

NameTypeDescription
Font.UIFont
Font.UISemiboldFont
Font.MonoFont