Apprendre
Type de données du moteur
Font

*Ce contenu est traduit en utilisant l'IA (Beta) et peut contenir des erreurs. Pour consulter cette page en anglais, clique ici.


Résumé
Constructeurs
new(family: Content,weight: FontWeight,style: Enum.FontStyle)
fromName(name: string,weight: FontWeight,style: Enum.FontStyle)
fromId(id: number,weight: FontWeight,style: Enum.FontStyle)

Référence API
Constructeurs
new
Font.new(
family:Content, weight:FontWeight, style:Enum.FontStyle)
Paramètres
family:Content
weight:FontWeight
Valeur par défaut : Enum.FontWeight.Regular
Valeur par défaut : Enum.FontStyle.Normal

fromEnum
Font.fromEnum(font:Enum.Font)
Paramètres

fromName
Font.fromName(
name:string, weight:FontWeight, style:Enum.FontStyle)
Paramètres
name:string
weight:FontWeight
Valeur par défaut : Enum.FontWeight.Regular
Valeur par défaut : Enum.FontStyle.Normal

fromId
Font.fromId(
id:number, weight:FontWeight, style:Enum.FontStyle)
Paramètres
weight:FontWeight
Valeur par défaut : Enum.FontWeight.Regular
Valeur par défaut : Enum.FontStyle.Normal

Propriétés
Family
Font.Family:Content

Weight
Font.Weight:FontWeight

Style
Font.Style:Enum.FontStyle

Bold
Font.Bold:boolean

©2026 Société Roblox. Roblox, le logo Roblox et Powering Imagination font partie de nos marques déposées aux États-Unis et dans d'autres pays.