Computercraft Text Size

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

The Snipe

New Member
Jul 29, 2019
92
0
0
Hey guys,

Im wondering does computercraft support having text of more then one size printed on a monitor?

I googled it, but all the answers are from 2012, so I was hoping it may have changed throughout the versions.

If not, then is there a way to have 2 monitors on top of eachother and not have them connect?

Cheers,
Snipe
 

Bomb Bloke

New Member
Jul 29, 2019
612
0
0
Assuming your monitor is wrapped as eg "monitor", then you can change its text size by calling monitor.setTextScale(). This changes all text that's currently on the monitor - you can't assign two different scales to the one monitor at the same time.

Monitor blocks will always attempt to combine, but only ever into basic rectangular shapes. If you place two monitor blocks above one monitor block (for eg) then it's impossible for them to follow this rule and so you end up with two separate monitors.
 

The Snipe

New Member
Jul 29, 2019
92
0
0
So going by that theres no specific way to have a header and then your content text on a screen, or could there be external API's that handle that for you (If its possible I'll go out and look, but it'll save me a few hours if I know its not)

Thats not a bad option either, if I'm stuck I could attempt a 2x1 and a 4x3 monitor or something similar.
 

Bomb Bloke

New Member
Jul 29, 2019
612
0
0
Well, CCLights could be used for the sort of thing you're after (if it's installed), but I gather it plays havoc with bandwidth usage and it's probably overkill for your purposes.

ComputerCraft has a "paint" API of its own, but that considers one whole character to be a "pixel" so you don't exactly have a lot a resolution to play around with.

I suspect you'll be best off either using multiple displays, or relying on text colour (rather then text size) to get your point across.
 
  • Like
Reactions: The Snipe