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

Custom Fonts...

Discussion in 'UO Enhanced Client Discussion' started by Dermott of LS, May 19, 2010.

  1. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

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

    From the patch notes: The definitions can then be used for Labels, Buttons, and EditBoxes

    Seems pretty straightforward, but there's a secret. Labels, Buttons, and EditBoxes are XML definitions... and those definitions cover just about EVERY text output in the UI.

    This means we'll soon be able to have a custom font for just about ANY UI element that uses text (that we can edit in the XML/LUA anyway) up to and including overhead names and overhead chat.

    I've done some work on this tonight and have those two items "hardcoded" to a custom font... now all we need is a font selector mod to add various UI elements to the list of customizeable fonts.

    And as luck would have it, all of the fonts we had in BB_Enhanced in KR will be available including the Magic the Gathering font as well as the classic UO (OltimaUnline) font.
     
  2. Storm

    Storm UO Forum Moderator
    Moderator Professional Premium Wiki Moderator Stratics Veteran Stratics Legend

    Joined:
    Mar 18, 2004
    Messages:
    7,469
    Likes Received:
    361
    Thats really cool...
     
  3. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

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

    It's finally a step back in the right direction... shame we had to wait almost a year since KR to get it back... but I'm glad it's back in nonetheless.

    Custom fonts and resizeable containers made all of the hassle with updating the UI worth it I can't begin to say how happy those make me.
     
  4. hawkeye_pike

    hawkeye_pike Babbling Loonie
    Stratics Veteran

    Joined:
    May 15, 2008
    Messages:
    2,466
    Likes Received:
    11
    Can anybody tell me where I can download the original KR or the early SA font? Thanks!
     
  5. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

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

    For those who want to change the font of the damage numbers, here's the deal:

    Move DamageWindow.xml from Default (unzip Default.zip if you need to) to your Fonts-enabled UI (C-E 1.7.7.1, S-E 1.0.1).

    Open DamageWindow.XML in Notepad and look for <Label name="$parentText" sticky="false" font="UO_Overhead_Chat" maxchars="4" (should be line 8, the file is pretty small) and change the font name accordingly based on the definitions provided in the fonts.xml file.
     
  6. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

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

    I also need a list of fonts that players would want to be customizeable via the User Settings.

    So far, I can think of the following:

    - Papderdoll (Character Nameplate)
    - Overhead Names
    - Overhead Chat
    - Damage Numbers
    - Item Properties (also need to see if there's a way to separate the "title" line and the "body"... in the current file, it's all one font) Note that this also changes the font of moused-over labels.
    - Hotbar Labels: Keybindings and item count (any desire for this?)
     
  7. hawkeye_pike

    hawkeye_pike Babbling Loonie
    Stratics Veteran

    Joined:
    May 15, 2008
    Messages:
    2,466
    Likes Received:
    11
    Nice detective work! I finally was able to change the the overhead damage font to an appropriate size. Now the fonts in my client look really good.
     
  8. Fink

    Fink Guest

    Please please please can we have a stroked font for visibility's sake? For overhead text but also plant gumps if possible (I can barely see the blue seed count).

    Does a ttf version of the classic default font exist?
     
  9. hawkeye_pike

    hawkeye_pike Babbling Loonie
    Stratics Veteran

    Joined:
    May 15, 2008
    Messages:
    2,466
    Likes Received:
    11
    What is a "stroked" font?
    For good visibility, I'd recommend any font that is bold.
     
  10. Fink

    Fink Guest

    Stroke is a (usually darker) outline like around a cartoon character. It helps it stand out on backgrounds that have a similar hue to the text itself.
     
  11. Zym Dragon

    Zym Dragon Seasoned Veteran
    Stratics Veteran

    Joined:
    Mar 18, 2004
    Messages:
    367
    Likes Received:
    0
    Yes, outlines around fonts can be defined as well as shadows. And yes again for the "classic" font (Oltima Unline). We used it in the KR mods and now we can use it again. :)

    I don't believe we can change the fonts used in the plant gumps, or any of the other classic looking gumps the devs made, since those are hard-coded in C++ and we don't have access to mod them.
     
  12. Gildar

    Gildar Babbling Loonie
    Stratics Veteran

    Joined:
    Apr 22, 2004
    Messages:
    2,354
    Likes Received:
    4
    I already made mods for these ones (hopefully they still work).
    And I think the Item Properties mod has font selection that splits between title or body... at least it did in KR... I forget how much got ported over.

    Just need to add new fonts to the CustomSettingsWindow stuff.
     
  13. Storm

    Storm UO Forum Moderator
    Moderator Professional Premium Wiki Moderator Stratics Veteran Stratics Legend

    Joined:
    Mar 18, 2004
    Messages:
    7,469
    Likes Received:
    361
    It has the title and body,
     
  14. Fink

    Fink Guest

    Danke. :love:

    My hope is some day they have enough faith in the EC to "complete" it. Not just squash all the bugs and add new features, that's ongoing. I mean really flesh it out in terms of full support, and not simply hack around Classic stuff (or worse, copy/paste it directly) because it's cheaper or easier.

    The new client is meant to update both the look and function, but we get those old mid-90s style gumps jarring us out of the experience.
     
  15. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

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

    I wish we could find someone who could take the Oltima Unline (the only version of the original UO font available) and could make it a higher resolution so it would look cleaner on the screen. That I think would do WONDERS for the look of the font in the game.

    But then I guess that's the case with EVERYTHING about the 2d client... just too low resolution these days :/

    Anyway... if we could maybe put out the call to someone who could do this...