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

Monitor Text Scale Help please [Lua]

Started by Skampi, 18 April 2013 - 05:47 AM
Skampi #1
Posted 18 April 2013 - 07:47 AM
Hey, from what i experienced so far, when you do things like this :


m = peripheral.wrap("back")

m.setTextScale(2)
m.setCursorPos(12, 3)
m.write("Hello")
m.setCursorPos(12, 4)
m.setTextScale(1)
m.write("Nice to see you")

it sets the "Hello" and the "Nice to see you" to TextScale(1).
Is there any way to get around this and have different textscales in one text?
I hope there is. :D/>
Sincerely,
Skampi.
SadKingBilly #2
Posted 18 April 2013 - 07:56 AM
No, unfortunately, there is not. setTextScale() doesn't apply to the text on the monitor, but to the monitor itself. Therefore, you're not actually affecting the text like you are when you use term.setTextColor().
Smiley43210 #3
Posted 18 April 2013 - 07:57 AM
Nope, when you set the scale, it sets it for the whole screen. The only way to achieve bigger text would be by using ASCII styled text.
Skampi #4
Posted 18 April 2013 - 08:00 AM
Ok, well, thats unfortunate, but thanks anyway. ^_^/>