Navigation

    RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Emulationstation font size in portrait

    Ideas and Development
    portrait vertical
    3
    6
    953
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rkoster
      rkoster last edited by

      I set up my RetroPie with a vertical screen, but as you all know, the font sizes are hardcoded in emulationstation.

      Just a quick glance, but it looks to me like

      #define FONT_SIZE_SMALL ((unsigned int)(0.035f * Renderer::getScreenHeight()))
      #define FONT_SIZE_MEDIUM ((unsigned int)(0.045f * Renderer::getScreenHeight()))
      #define FONT_SIZE_LARGE ((unsigned int)(0.085f * Renderer::getScreenHeight()))
      

      in /es-core/src/resources/Font.h could maybe be changed to take, essentially, MIN(Renderer::getScreenHeight(),Renderer::getScreenWidth()) and the font issues in vertical layouts would improve quite a lot?

      Haven't messed with it myself, nor checked to see if other layout things would get fixed (like buttons spilling out) but it seems possible, if it's all scaled around the fonts...

      jdrassa 1 Reply Last reply Reply Quote 0
      • jdrassa
        jdrassa @rkoster last edited by

        @rkoster I tested this idea out it it definitely is an improvement. I am going submit it in the near future.

        rkoster 1 Reply Last reply Reply Quote 1
        • rkoster
          rkoster last edited by

          Awesome, glad to hear it! It's a old mobile game dev trick for dealing with fonts and games that you can rotate to landscape or portrait.

          1 Reply Last reply Reply Quote 0
          • rkoster
            rkoster @jdrassa last edited by

            @jdrassa Saw you submitted this, thank you!

            1 Reply Last reply Reply Quote 0
            • twd
              twd Banned last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • rkoster
                rkoster last edited by

                I tested this out by building from source, and yes, it is definitely an improvement. Since the font is taller than it is wide, though, the percentages could probably be manually tweaked even further... I may get set up for dev and mess about.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.