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

Multiple text sizes on the same monitor

Started by Hobby boy, 02 November 2012 - 09:08 AM
Hobby boy #1
Posted 02 November 2012 - 10:08 AM
I'm trying to do a computercraft monitor board, but i can't seem to use multiple text sizes on the same monitor.
This is the code I have so far:
mon = peripheral.wrap("top")
mon.clear()
mon.setTextScale(2)
mon.setCursorPos(13, 1)
mon.write("Rules")
mon.setTextScale(1)
mon.setCursorPos(2, 7)
mon.write("1. ")

For some reason, the text in scale 2 doesn't show on the top of the monitor, but anything after in scale 1 does?
zeekkay #2
Posted 02 November 2012 - 10:11 AM
Don't think it's possible to have different text sizes on the same monitor. I've tried this before. Something about the way ComputerCraft is written.
zeekkay #3
Posted 02 November 2012 - 10:20 AM
I'm trying to do a computercraft monitor board, but i can't seem to use multiple text sizes on the same monitor.
This is the code I have so far:
mon = peripheral.wrap("top")
mon.clear()
mon.setTextScale(2)
mon.setCursorPos(13, 1)
mon.write("Rules")
mon.setTextScale(1)
setCursorPos(2, 7)
mon.write("1. ")

For some reason, the text in scale 2 doesn't show on the top of the monitor, but anything after in scale 1 does?

Also, note the second to the last line setCursorPos(2,7)

You forgot the monitor handle.
remiX #4
Posted 02 November 2012 - 10:29 AM
Yeah looks like all text changes when u change the size :/