添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards.

Creates a Font object.

fontObject = CreateFont(name)

Arguments

string - Globally-accessible name to be assigned for use as _G["name"]

Returns

fontObject
Font🔗 - Reference to the new font object.

Details

  • Font objects, similar to XML <Font> elements, may be used to create a common font pattern assigned to several widgets via FontInstance:SetFontObject(fontObject).
    • Subsequently changing the font object will affect the text displayed on every widget it was assigned to.
  • Since the new font object is created without any properties, it should be initialized via FontInstance:SetFont(path, height [, flags]) or Font:CopyFontObject(otherFont).