1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

Default Font Size

Discussion in 'UO Enhanced Client Discussion' started by Llewen, Dec 24, 2010.

  1. Llewen

    Llewen Grand Inquisitor
    Professional Stratics Veteran Stratics Legend Campaign Supporter

    Joined:
    Mar 3, 2006
    Messages:
    4,699
    Likes Received:
    200
    Is there a way to change the default font size? I'm just having a few problems with fonts not fitting properly in scaled UI elements. Specifically what I'm looking for is where this variable "UO_DefaultText" is set.
     
  2. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,675
    Likes Received:
    865
    is in the untouchable part of the UI and you can't edit it :(
     
  3. Llewen

    Llewen Grand Inquisitor
    Professional Stratics Veteran Stratics Legend Campaign Supporter

    Joined:
    Mar 3, 2006
    Messages:
    4,699
    Likes Received:
    200
    Ah that sucks. I guess I won't waste anymore time looking for it and maybe if the devs see this they can consider this a request that the ability to configure and mod that be added.
     
  4. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    5,320
    Likes Received:
    528
    ...

    There is not one overriding value for the default fonts, each UI element tends to have its own.

    First of all, grab one of the user created UI mods and you should see a Fonts folder. Open this folder and open up the fonts.xml file.

    This will have all of the additional fonts defined (as well as sizes for said fonts). Normal fonts you can find throughout the XML code in the Source folder.

    Each font will be defined by a name that refers to the definition in the fonts.xml file (i.e. in my Third Dawn add-on, UO_15 is the classic UO font in 15 point, magic_20 is the Magic the Gathering font in 20 point and so on).

    In the XML files in the source folder, you will be looking for something to the effect of <font="font_xx">. That is where the font is defined for each element within the element itself.

    You will then find that many elements, especially ones that are used in various UI windows will be referenced. Most of those will be found in DefaultUITemplates, DefaultWindow, and so on.

    By messing around with the XML code you can change the fonts and sizes of the various elements to your liking (if it is not doable in the skin settings itself).
     
  5. Llewen

    Llewen Grand Inquisitor
    Professional Stratics Veteran Stratics Legend Campaign Supporter

    Joined:
    Mar 3, 2006
    Messages:
    4,699
    Likes Received:
    200
    I was looking for that one particular font, "UO_DefaultText", and I couldn't find that anywhere. I suppose I could just change the font in the element to something else.
     
  6. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    5,320
    Likes Received:
    528
    ...

    That's a specific font name, you can reduce the size to 15 point by adding '_15pt' to the end of UO_DefaultText
     
  7. Llewen

    Llewen Grand Inquisitor
    Professional Stratics Veteran Stratics Legend Campaign Supporter

    Joined:
    Mar 3, 2006
    Messages:
    4,699
    Likes Received:
    200
    Ah thanks, that's good to know.