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

    Where is the Default Theme Font Located?

    Scheduled Pinned Locked Moved Projects and Themes
    themefont
    13 Posts 3 Posters 1.4k 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.
    • A
      AlphaBetaPie
      last edited by

      I have been able to edit the font used in my theme that governs the rom/game list and various other places. But there is one font I can't seem to track down its location in the html.

      When you hold down the d-pad and fast-scroll through your games, after a while the system goes into this lettered view and starts jumping ahead. It displays the alphabet by section on the screen so you can see where you are. It's this font I'm after. Appears to be some generic system default and not the same as what I have assigned throughout my theme. I'd like to change it to match the rest of my theme.

      Here is a screenshot:
      systemfont.jpg

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        The font Open Sans Condensed and you can find it in the resources installation sub-folder (/opt/retropie/supplementary/emulationstation/resources/).

        A 1 Reply Last reply Reply Quote 0
        • A
          AlphaBetaPie @mitu
          last edited by

          @mitu said in Where is the Default Theme Font Located?:

          The font Open Sans Condensed and you can find it in the resources installation sub-folder (/opt/retropie/supplementary/emulationstation/resources/).

          Thanks for the info. However, I'm still having issues.

          I tried navigating to that directory, and overwriting my custom font with the default (I copy/pasted two copies, and changed both their names to opensans_hebrew_condensed_light.ttf and opensans_hebrew_condensed_regular.ttf. However, when I restart and long-press the dpad to get the scroll, it still displays the default. Am I missing something here?

          Also, a more efficient way of doing this seems to be to find the config rile that points to the default font directory, and change it to point to where my custom font already resides. Any thoughts on that?

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @AlphaBetaPie
            last edited by

            @AlphaBetaPie Maybe it's not that particular font, in which case I have no idea which is the source of that font.

            A 1 Reply Last reply Reply Quote 0
            • A
              AlphaBetaPie @mitu
              last edited by

              @mitu said in Where is the Default Theme Font Located?:

              @AlphaBetaPie Maybe it's not that particular font, in which case I have no idea which is the source of that font.

              I appreciate the help anyway!

              One final inquiry. Are there other locations I can check out that house fonts? I can do some trial and error in swapping them out, I just need to find them. If you happen to know more locations off the top of your head, that is.

              S 1 Reply Last reply Reply Quote 0
              • S
                sleve_mcdichael @AlphaBetaPie
                last edited by

                @AlphaBetaPie is it one of these? These are all the .ttf files on my system that don't look like they belong to something else (besides the two opensans_hebrew_condensed_ that you already checked in /opt/retropie/supplementary/emulationstation(-dev)/resources):

                /opt/vc/src/hello_pi/hello_font/Vera.ttf
                /usr/share/directfb-1.7.7/decker.ttf
                /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
                /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
                /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
                /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
                /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf
                /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf
                /usr/share/fonts/truetype/freefont/FreeMonoBoldOblique.ttf
                /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
                /usr/share/fonts/truetype/freefont/FreeMonoOblique.ttf
                /usr/share/fonts/truetype/freefont/FreeMono.ttf
                /usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf
                /usr/share/fonts/truetype/freefont/FreeSansBold.ttf
                /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
                /usr/share/fonts/truetype/freefont/FreeSans.ttf
                /usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf
                /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
                /usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf
                /usr/share/fonts/truetype/freefont/FreeSerif.ttf
                /usr/share/qt5/doc/global/template/style/icomoon.ttf
                
                A 1 Reply Last reply Reply Quote 0
                • A
                  AlphaBetaPie @sleve_mcdichael
                  last edited by

                  @sleve_mcdichael said in Where is the Default Theme Font Located?:

                  @AlphaBetaPie is it one of these? These are all the .ttf files on my system that don't look like they belong to something else (besides the two opensans_hebrew_condensed_ that you already checked in /opt/retropie/supplementary/emulationstation(-dev)/resources):

                  /opt/vc/src/hello_pi/hello_font/Vera.ttf
                  /usr/share/directfb-1.7.7/decker.ttf
                  /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
                  /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
                  /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
                  /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
                  /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf
                  /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf
                  /usr/share/fonts/truetype/freefont/FreeMonoBoldOblique.ttf
                  /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
                  /usr/share/fonts/truetype/freefont/FreeMonoOblique.ttf
                  /usr/share/fonts/truetype/freefont/FreeMono.ttf
                  /usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf
                  /usr/share/fonts/truetype/freefont/FreeSansBold.ttf
                  /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
                  /usr/share/fonts/truetype/freefont/FreeSans.ttf
                  /usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf
                  /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
                  /usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf
                  /usr/share/fonts/truetype/freefont/FreeSerif.ttf
                  /usr/share/qt5/doc/global/template/style/icomoon.ttf
                  

                  Wow, what a great list! And I would love to tell you for sure, but when I try to overwrite the files with the updated fonts to test, I get the "Permission Error" notice. And I've never been able to figure out a way around these when directories do that. I usually end up having to move the copies out to another location that is not locked. So not sure how to test these here unfortunately.

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sleve_mcdichael @AlphaBetaPie
                    last edited by

                    @AlphaBetaPie looks like /usr/share is a root folder and so you'll need sudo to write anything there.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      AlphaBetaPie @sleve_mcdichael
                      last edited by

                      @sleve_mcdichael said in Where is the Default Theme Font Located?:

                      @AlphaBetaPie looks like /usr/share is a root folder and so you'll need sudo to write anything there.

                      Thanks! I am familiar with using the sudo command but only in Putty. I use Putty to navigate my Pie and configure settings where needed (that I wouldn't normally be able to do from my desktop). But I'm not familiar in the process of using it to work within directories and swap out/mod files. Is there a link I can learn about this?

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sleve_mcdichael @AlphaBetaPie
                        last edited by sleve_mcdichael

                        @AlphaBetaPie well, prefacing a command with sudo elevates the command to root (admin) privileges. So if you try to remove or overwrite a protected file for example with rm file.txt and it says permission denied, you can do it anyway with sudo rm file.txt or even sudo !! (!! just means "repeat the previous command.") Make sure your are sure; it won't ask.

                        Anything you do as sudo will be as if it were done by user root so if for example you create a file with a sudo command, it'll be root-owned and protected, and so a regular user (pi for example, on a default RPi system) won't be able to write to or delete it, without another sudo invocation.

                        It does a lot more, but that's really all I use it for: elevating a command to root privileges.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          AlphaBetaPie @sleve_mcdichael
                          last edited by

                          @sleve_mcdichael said in Where is the Default Theme Font Located?:

                          @AlphaBetaPie well, prefacing a command with sudo elevates the command to root (admin) privileges. So if you try to remove or overwrite a protected file for example with rm file.txt and it says permission denied, you can do it anyway with sudo rm file.txt or even sudo !! (!! just means "repeat the previous command.") Make sure your are sure; it won't ask.

                          Anything you do as sudo will be as if it were done by user root so if for example you create a file with a sudo command, it'll be root-owned and protected, and so a regular user (pi for example, on a default RPi system) won't be able to write to or delete it, without another sudo invocation.

                          It does a lot more, but that's really all I use it for: elevating a command to root privileges.

                          Thanks for that info. I wasn't clear enough in my description, so my fault. Let me explain.

                          So for changing of things about the Retropie config after a fresh install, I use Putty on my desktop to pull up the terminal. Many of these commands have to be executed with Sudo. So I'm familiar there.

                          When I want to change something about the skin/theme, I'm dealing with PNG files, XML files, and in this case TTF files for the font. For that, I use my FTP client (like FLASH FXP) to navigate to those directories and copy/overwrite the files. It's here where I get the permission denied errors in my client. Because I'm trying to copy back to a protected folder. And Sudo wouldn't really come into play here.

                          So what would you suggest in this instance?

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            sleve_mcdichael @AlphaBetaPie
                            last edited by

                            @AlphaBetaPie ah, I don't know then because I only ever use it over terminal myself. Log in as root, maybe?

                            https://retropie.org.uk/docs/FAQ/#why-cant-i-ssh-as-root-anymore

                            ...or add them to a regular folder over FTP then SSH in and sudo cp them via command-line for the "last mile."

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              AlphaBetaPie @sleve_mcdichael
                              last edited by

                              @sleve_mcdichael said in Where is the Default Theme Font Located?:

                              @AlphaBetaPie ah, I don't know then because I only ever use it over terminal myself. Log in as root, maybe?

                              https://retropie.org.uk/docs/FAQ/#why-cant-i-ssh-as-root-anymore

                              ...or add them to a regular folder over FTP then SSH in and sudo cp them via command-line for the "last mile."

                              Thanks, appreciate the help. I'll keep fiddling with it and if I need more help I'll check back. Much appreciated!

                              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.