This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Drsirdeath's profile picture

Adjusting Fonts

Started by Drsirdeath, 06 July 2012 - 02:25 PM
Drsirdeath #1
Posted 06 July 2012 - 04:25 PM
Hi, Im working on making a clock on my server in a computer layout involving 6 monitors in the form of two rows of three. i have no clue how to adjust the font. Can anyone help me to find out where to start?!
MysticT #2
Posted 06 July 2012 - 04:35 PM
Monitors have a method called setScale or something like that, it gets a number between 1 and 5.
Example:

local monitor = peripheral.wrap("<side>")
monitor.setTextScale(3) -- set the text scale to 3

EDIT: just checked, the method is setTextScale
Drsirdeath #3
Posted 07 July 2012 - 12:22 AM
Alright i typed in the code along with print("Test") and it says the first line is incorrect "attempt to call nil".
heres what is exactly typed

local monitor = peripheral.warp("right")
monitor.setTextScale(3)
print("Test")

and when i run the program it says

(programname):1: attempt to call nil

I am a terrible programmer. very noobish. so can you explain to me what i did wrong… thanks.
MysticT #4
Posted 07 July 2012 - 01:04 AM
It's peripheral.wrap, not warp.
Drsirdeath #5
Posted 07 July 2012 - 01:09 AM
I feel like a fool…
Thanks :P/>/>