DX MODDING GUIDE
  • Welcome to the DX Modding Guide!
  • File Structure
    • Folder Structure
    • Mod File
    • Metadata
  • Lua API
    • Working with GML
    • Callbacks
    • Assets
      • Sprites
      • Sounds
      • Fonts
    • Properties
    • Modcharts
    • FNFFD Functions
  • basic tutorials
    • Custom Songs
    • Example Mods
Powered by GitBook
On this page
  • addFont(name: String, path: String, size: Int, bold: Boolean, italic: Boolean, ?first: Int = 32, ?last: Int = 128,?antialiasing: Boolean = false)
  • getFont(name: String)
  1. Lua API
  2. Assets

Fonts

font are a little more complex!!

addFont(name: String, path: String, size: Int, bold: Boolean, italic: Boolean, ?first: Int = 32, ?last: Int = 128,?antialiasing: Boolean = false)

adds a font for use in scripts path will start from mod's folder

EXAMPLE:

function onCreatePost()
    addFont("papyrus","assets/papyrus.ttf",16,false,false)
end

getFont(name: String)

gets a font you added

EXAMPLE:

function onCreatePost()
    setUIProperty("scoretext","font",getFont("papyrus"))
end
PreviousSoundsNextProperties

Last updated 8 months ago