iesika 0 Posted August 31, 2017 Share Posted August 31, 2017 I want to change font size in opencomputers screen, but It seems that API does not exist. So, I made this. You can use range of characters from 0x0020 to 0x007E. You can change font size (2-8). I recommend that you use size 4 or 8. 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: 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, 8 do bigfont.load(size) end local y = 1 for size = 2, 8 do bigfont.set(1, y, args[1] or "size"..tostring(size), size) y = y + size end (sorry for my English) bigfont.zip Quote Link to post Share on other sites
Izaya 19 Posted September 4, 2017 Share Posted September 4, 2017 Size 7 and 8 look pretty nice, actually. The smaller sizes have little issues but the bigger ones look really damn nice. Quote Link to post Share on other sites