Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7.2 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.2. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
  • 0
tongkl1

How to adjust font size according to resolution

Question

I'm using setResolution() to set screen tier 2 to a lower resolution in anticipation of bigger letters while it doesn't work... Letters just display as small while the bottom & right part of the screen is abandoned... how can i get it right just as OpenOS prompt do? thx:)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Try with these:

 

component.gpu.setResolution(width: number, height: number)

A, B = component.screen.getAspectRatio()

print(A)

print(B)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×