RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    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

    How Can I Get Foreign Characters to Properly Display in Descriptions?

    Scheduled Pinned Locked Moved Help and Support
    languagejapanesefontutf-8themes
    7 Posts 2 Posters 789 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.
    • GaucheArtistG
      GaucheArtist
      last edited by

      As the title says, I'm trying to include Japanese characters in a game's meta data, but the description only displays it using a series of "." characters.

      Information is hard to come by on this topic, although someone had suggested that I need to change the theme's font. They didn't elaborate further, and I don't see any options for that in either UI Settings or ES Themes, so I've come here to see if anyone could point me in the right direction.

      Information:
      • Raspberry Pi 4 Model B
      • Clean flash of the recent RetroPie 4.8 image

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

        The theme can define what font (.ttf file) to be used - the default font used by ES (OpenSansSerif) does not have all the CJK characters/codepoints implemented.
        With the right font, that includes the Japanese UTF8 codepoints, text will be displayed correctly.

        GaucheArtistG 1 Reply Last reply Reply Quote 2
        • GaucheArtistG
          GaucheArtist @mitu
          last edited by GaucheArtist

          @mitu Great, it seems like a simple replacement. Looking at the folder structure for the default Carbon-2021 theme, I see:

          etc/emulationstation/themes/carbon-2021/art/Cabin-Bold.ttf
          

          Would that be the correct file I'd need to replace, or is there somewhere else I should be looking?

          EDIT: Follow-up, using FileZilla, I'm getting a write permission denied error when trying to transfer the new font into this folder. Any way to bypass it?

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

            @GaucheArtist said in How Can I Get Foreign Characters to Properly Display in Descriptions?:

            Any way to bypass it?

            Don't modify the theme installed by RetroPie-Setup, since it will be overwritten by an upgrade. Instead, copy the theme to $HOME/.emulationstation/themes/<theme_name> and modify it there. Name the theme folder differently, so there can be no ambiguity when choosing it in EmulationStation.

            GaucheArtistG 1 Reply Last reply Reply Quote 1
            • GaucheArtistG
              GaucheArtist @mitu
              last edited by GaucheArtist

              @mitu Following the instructions here, I was able to get the theme to appear in my list, but when trying to apply it, I'm kicked to the terminal with the error:

              emulationstation: /home/pi/RetroPie-Setup/tmp/build/emulationstation/es-core/src/resources/Font.cpp:21: Font: :FontFace: :FontFace(ResourceData&&, int): Assertion '!err' failed.
              Aborted
              

              I replaced the .ttf in the new theme's "art" folder and also modified the corresponding theme.xml to include the new font's file name. Not sure if I overlooked something else that's required.

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

                If you're sure the .ttf file is a valid TrueType font file, then check that the name of the file is correct in the theme file. Remember that Linux filesystems are case sensitive, so make sure the file's name is correct.

                GaucheArtistG 1 Reply Last reply Reply Quote 1
                • GaucheArtistG
                  GaucheArtist @mitu
                  last edited by

                  @mitu Discovered my problem. There were actually two theme.xml files that needed editing, the first in the root of the designated theme and a second copy in the retropie subfolder.

                  Sure enough, modifying both theme.xml files got the font working!

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