Skip to content

gFont is a 'small' API that draws text on enabled graphicsMode in CC:Tweaked.

License

Notifications You must be signed in to change notification settings

Fatboychummy-CC/gFont-cc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gFont-cc

gFont is a 'small' API that draws text on enabled graphicsMode in CC:Tweaked.

There is a default font with the API, that supports the chars from \000 to \159. Its 9x9px big.

Example:

local gFont = require("gFont")
---------------------------------------
term.setGraphicsMode(1)
term.clear()

term.setTextColor(colors.purple)
gFont.write(0,0,"The default font! :)")

term.setTextColor(colors.lightGray)
gFont.write(0,9,("\131"):rep(20))
sleep(1)

Alt Text

👉Note: The API only works if CC supports the graphics mode! The original mod or normal emulators dont have this feature normally!

You can download it with the following command:

wget https://raw.githubusercontent.com/1Turtle/gFont-cc/main/gFont.lua

About

gFont is a 'small' API that draws text on enabled graphicsMode in CC:Tweaked.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 100.0%