RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Emulationstation font size in portrait

    Scheduled Pinned Locked Moved Ideas and Development
    portraitvertical
    6 Posts 3 Posters 1.5k Views
    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.
    • rkosterR
      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...

      Github/helper scripts * Creativision/Arcadia/Astrocade guide * Amiga guide * Atari 8bit guide

      J 1 Reply Last reply Reply Quote 0
      • J
        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.

        Get latest build of EmulationStation for Windows here

        rkosterR 1 Reply Last reply Reply Quote 1
        • rkosterR
          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.

          Github/helper scripts * Creativision/Arcadia/Astrocade guide * Amiga guide * Atari 8bit guide

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

            @jdrassa Saw you submitted this, thank you!

            Github/helper scripts * Creativision/Arcadia/Astrocade guide * Amiga guide * Atari 8bit guide

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

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • rkosterR
                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.

                Github/helper scripts * Creativision/Arcadia/Astrocade guide * Amiga guide * Atari 8bit guide

                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.