bigfont.set(x: number, y: number, string: number, size: number) -- writes a string to the screen
Example:
local bigfont =require("bigfont")local component =require("component")local gpu = component.gpu
local w, h = gpu.getResolution()local args ={...}
gpu.fill(1,1,w,h," ")for size =2,8do
bigfont.load(size)endlocal y =1for size =2,8do
bigfont.set(1, y, args[1]or"size"..tostring(size), size)
y = y + size
end
Pseudo big font library
in Libraries & API's
Posted
I want to change font size in opencomputers screen, but It seems that API does not exist.
So, I made this.
Download:
attachment file or github
API:
bigfont.load(size: number) -- load font file
bigfont.set(x: number, y: number, string: number, size: number) -- writes a string to the screen
Example:
(sorry for my English)
bigfont.zip