• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • R
    rkoster
    last edited by 26 Jul 2017, 22:30

    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 28 Jul 2017, 03:16 Reply Quote 0
    • J
      jdrassa @rkoster
      last edited by 28 Jul 2017, 03:16

      @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

      R 1 Reply Last reply 9 Aug 2017, 02:41 Reply Quote 1
      • R
        rkoster
        last edited by 28 Jul 2017, 05:24

        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
        • R
          rkoster @jdrassa
          last edited by 9 Aug 2017, 02:41

          @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 10 Aug 2017, 20:45

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • R
              rkoster
              last edited by 12 Aug 2017, 02:10

              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.

                [[user:consent.lead]]
                [[user:consent.not_received]]