• Hail Guest!
    We're looking for Community Content Contribuitors to Stratics. If you would like to write articles, fan fiction, do guild or shard event recaps, it's simple. Find out how in this thread: Community Contributions
  • Greetings Guest, Having Login Issues? Check this thread!
  • Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
  • Hail Guest!
    Please read the new announcement concerning the upcoming addition to Stratics. You can find the announcement Here!

Default Font Size

Llewen

Grand Inquisitor
Stratics Veteran
Stratics Legend
Campaign Supporter
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.
 

Pinco

UOEC Modder
Stratics Veteran
Stratics Legend
is in the untouchable part of the UI and you can't edit it :(
 

Llewen

Grand Inquisitor
Stratics Veteran
Stratics Legend
Campaign Supporter
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.
 

Dermott of LS

UOEC Modder
Stratics Veteran
Stratics Legend
...

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).
 

Llewen

Grand Inquisitor
Stratics Veteran
Stratics Legend
Campaign Supporter
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.
 

Dermott of LS

UOEC Modder
Stratics Veteran
Stratics Legend
...

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