Where is the Default Theme Font Located?
-
@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?
-
@AlphaBetaPie Maybe it's not that particular font, in which case I have no idea which is the source of that font.
-
@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.
-
@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 twoopensans_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
-
@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 twoopensans_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.
-
@AlphaBetaPie looks like
/usr/share
is a root folder and so you'll needsudo
to write anything there. -
@sleve_mcdichael said in Where is the Default Theme Font Located?:
@AlphaBetaPie looks like
/usr/share
is a root folder and so you'll needsudo
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?
-
@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 withrm file.txt
and it says permission denied, you can do it anyway withsudo rm file.txt
or evensudo !!
(!!
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 asudo
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 anothersudo
invocation.It does a lot more, but that's really all I use it for: elevating a command to root privileges.
-
@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 withrm file.txt
and it says permission denied, you can do it anyway withsudo rm file.txt
or evensudo !!
(!!
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 asudo
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 anothersudo
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?
-
@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." -
@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!
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.