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

Monitor help

Started by qtoompuu, 21 August 2014 - 07:17 PM
qtoompuu #1
Posted 21 August 2014 - 09:17 PM
Im trying to get text of two different sizes to print onto a monitor, sort of like a title with larger font and information in smaller text. The code i'm using is:

monitor = peripheral.wrap("right")
monitor.clear()
monitor.setCursorPos(1,1)
Monitor.setTextScale(5)
monitor.write("STUFF")
monitor.setTextScale(1)
monitor.setCursorPos(2,5)
monitor.write("more stuff")

It prints everything to the screen but all one size. Is there a function that allows you to change the size of only individual strings rather than the entire monitor?


Thanks in advance
Dog #2
Posted 21 August 2014 - 11:52 PM
Monitors can only display a single size on a single screen (regardless of the number of monitors used to create the display screen). You'll need to set up two separate 'screens' to display two different text sizes. You can offset the two screens so they don't concatenate into one screen like so…

MMMS
SMMM

where S = Stone (or other material) and M = Monitor

Hope that helps :)/>
Edited on 21 August 2014 - 09:59 PM