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

edit xml upper case



  • hi to all,
    im try to edit an xml from a theme and i need help
    i search over the internet but i dont find any solution thats why im posting here

    here is the xml file (lines) i want to modify:

    <textlist name="gamelist">
    <selectorColor>FFFFFFEE</selectorColor>
    <selectorImagePath>./_art/icon.png</selectorImagePath>
    <selectedColor>b21212</selectedColor>
    <selectorHeight>.05</selectorHeight>
    <primaryColor>EEEEEEEE</primaryColor>
    <secondaryColor>eac428</secondaryColor>
    <fontPath>./_art/comic.otf</fontPath>
    <scrollSound>./_art/scroll_sound.wav</scrollSound>
    <alignment>left</alignment>
    <pos>0.04 0.23</pos>
    <size>0.415 0.674</size>
    <fontSize>0.022</fontSize>
    <lineSpacing>1</lineSpacing>
    <horizontalMargin>0.04</horizontalMargin>
    </textlist>

    now what i want is the name of the games to be shown only lower case and not upper case
    example: WONDERBOY to wonderboy

    thanks in advanced and sorry for my bad english



  • @isolakis said in edit xml upper case:

    now what i want is the name of the games to be shown only lower case and not upper case
    example: WONDERBOY to wonderboy

    search, download and use a lowercase font instead of comic.otf

    quick example: https://www.1001fonts.com/effortless-font.html

    alt text

    Using that font in a graphics editor will result in lowercase even when using uppercase input text ... it will behave the same way in a Retropie/Emulationstation theme.

    alt text


  • Global Moderator

    @isolakis Change the entry to

    <textlist name="gamelist">
    <selectorColor>FFFFFFEE</selectorColor>
    <selectorImagePath>./_art/icon.png</selectorImagePath>
    <selectedColor>b21212</selectedColor>
    <selectorHeight>.05</selectorHeight>
    <primaryColor>EEEEEEEE</primaryColor>
    <secondaryColor>eac428</secondaryColor>
    <fontPath>./_art/comic.otf</fontPath>
    <scrollSound>./_art/scroll_sound.wav</scrollSound>
    <alignment>left</alignment>
    <pos>0.04 0.23</pos>
    <size>0.415 0.674</size>
    <fontSize>0.022</fontSize>
    <lineSpacing>1</lineSpacing>
            <forceUppercase>0</forceUppercase>
    <horizontalMargin>0.04</horizontalMargin>
    </textlist>
    

    and see if that works.



  • @mitu said in edit xml upper case:

        <forceUppercase>0</forceUppercase>
    

    thanks its work after i set that line



  • @ReadyPlayaWon

    works with that way too
    thanks for your help


Log in to reply
 

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.