Font
Describes the font used to render text. Every font consists of a font family (like Source Sans Pro), a weight like Enum.FontWeight.Bold, and a style like Enum.FontStyle.Italic.
Font families are a type of asset, like images or meshes. Each font family contains a number of font faces, and each face has a different weight and style.
Font is used by the TextLabel.FontFace, TextButton.FontFace, and TextBox.FontFace properties.
Font List
Name | Asset ID | Weights |
---|---|---|
Accanthis ADF Std | rbxasset://fonts/families/AccanthisADFStd.json | Regular |
Amatic SC | rbxasset://fonts/families/AmaticSC.json | Regular, Bold |
Arial | rbxasset://fonts/families/Arial.json | Regular, Bold |
Arial (Legacy) | rbxasset://fonts/families/LegacyArial.json | Regular, Bold |
Arimo | rbxasset://fonts/families/Arimo.json | Regular, Medium, Semi Bold, Bold |
Balthazar | rbxasset://fonts/families/Balthazar.json | Regular |
Bangers | rbxasset://fonts/families/Bangers.json | Regular |
Builder Sans | rbxasset://fonts/families/BuilderSans.json | Thin, Light, Regular, medium, Semi Bold, Bold, Extra Bold |
Comic Neue Angular | rbxasset://fonts/families/ComicNeueAngular.json | Bold |
Creepster | rbxasset://fonts/families/Creepster.json | Regular |
Denk One | rbxasset://fonts/families/DenkOne.json | Regular |
Fondamento | rbxasset://fonts/families/Fondamento.json | Regular |
Fredoka One | rbxasset://fonts/families/FredokaOne.json | Regular |
Gotham SSm | rbxasset://fonts/families/GothamSSm.json | Book, Medium, Bold, Black |
Grenze Gotisch | rbxasset://fonts/families/GrenzeGotisch.json | Thin, Extra Light, Light, Regular, Medium, Semi Bold, Bold, Extra Bold, Black |
Guru | rbxasset://fonts/families/Guru.json | Regular |
Highway Gothic | rbxasset://fonts/families/HighwayGothic.json | Regular |
Inconsolata | rbxasset://fonts/families/Inconsolata.json | Extra Light, Light, Regular, Medium, Semi Bold, Bold, Extra Bold, Black |
Indie Flower | rbxasset://fonts/families/IndieFlower.json | Regular |
Josefin Sans | rbxasset://fonts/families/JosefinSans.json | Thin, Extra Light, Light, Regular, Medium, Semi Bold, Bold |
Jura | rbxasset://fonts/families/Jura.json | Light, Regular, Medium, Semi Bold, Bold |
Kalam | rbxasset://fonts/families/Kalam.json | Light, Regular, Bold |
Luckiest Guy | rbxasset://fonts/families/LuckiestGuy.json | Regular |
Merriweather | rbxasset://fonts/families/Merriweather.json | Light, Regular, Bold, Black |
Michroma | rbxasset://fonts/families/Michroma.json | Regular |
Montserrat | rbxasset://fonts/families/Montserrat.json | Thin, Extra Light, Light, Regular, Mediu, Semi Bold, Bold, Black |
Nunito | rbxasset://fonts/families/Nunito.json | Extra Light, Light, Regular, Semi Bold, Bold, Extra Bold, Black |
Oswald | rbxasset://fonts/families/Oswald.json | Extra Light, Light, Regular, Medium, Semi Bold, Bold |
Patrick Hand | rbxasset://fonts/families/PatrickHand.json | Regular |
Permanent Marker | rbxasset://fonts/families/PermanentMarker.json | Regular |
Press Start 2P | rbxasset://fonts/families/PressStart2P.json | Regular |
Roboto | rbxasset://fonts/families/Roboto.json | Thin, Light, Regular, Medium, Bold, Black |
Roboto Condensed | rbxasset://fonts/families/RobotoCondensed.json | Light, Regular, Bold |
Roboto Mono | rbxasset://fonts/families/RobotoMono.json | Thin, Extra Light, Light, Regular, Medium, Semi Bold, Bold |
Roman Antique | rbxasset://fonts/families/RomanAntique.json | Regular |
Sarpanch | rbxasset://fonts/families/Sarpanch.json | Regular, Medium, Semi Bold, Bold, Extra Bold, Black |
Source Sans Pro | rbxasset://fonts/families/SourceSansPro.json | Extra Light, Light, Regular, Semi Bold, Bold, Black |
Special Elite | rbxasset://fonts/families/SpecialElite.json | Regular |
Titillium Web | rbxasset://fonts/families/TitilliumWeb.json | Extra Light, Light, Regular, Semi Bold, Bold, Black |
Ubuntu | rbxasset://fonts/families/Ubuntu.json | Light, Regular, Medium, Bold |
Zekton | rbxasset://fonts/families/Zekton.json | Regular |
Resumo
Construtores
- new(family : Content,weight : Enum.FontWeight,style : Enum.FontStyle)
- fromName(name : string,weight : Enum.FontWeight,style : Enum.FontStyle)
- fromId(id : number,weight : Enum.FontWeight,style : Enum.FontStyle)
Propriedades
The asset ID for the font family.
How thick the text is.
Whether the font is italic.
Whether the font is bold.
Construtores
new
Parâmetros
Amostras de código
script.Parent.FontFace = Font.new("rbxasset://fonts/families/Roboto.json", Enum.FontWeight.Light)
fromEnum
Parâmetros
Amostras de código
script.Parent.FontFace = Font.fromEnum(Enum.Font.SciFi)
print(script.Parent.FontFace)
fromName
Parâmetros
Amostras de código
script.Parent.FontFace = Font.fromName("FredokaOne")
print(script.Parent.FontFace.Family)
fromId
Parâmetros
Amostras de código
script.Parent.FontFace = Font.fromId(8836875837)
print(script.Parent.FontFace.Family)
Propriedades
Family
The asset ID for the font family. These start with either rbxasset:// or rbxassetid://.
Weight
How thick the text is. The default value is Enum.FontWeight.Regular.
When set, Font.Bold is updated. Bold is true if the weight is Enum.FontWeight.SemiBold or thicker.
Style
Whether the font is italic. The default value is Enum.FontStyle.Normal. The font can be made italic (like this) using Enum.FontStyle.Italic.
Bold
Whether the font is bold. Sets Font.Weight to Enum.FontWeight.Bold when true, and Enum.FontWeight.Regular otherwise.