Any way to change the font?

Talk about the mods or features you'd like to see in Daggerfall Unity. Give mod creators some ideas!
Post Reply
User avatar
eternalsage
Posts: 6
Joined: Thu Jul 19, 2018 4:42 am

Any way to change the font?

Post by eternalsage » Wed Aug 01, 2018 12:27 am

I know its old school, and that's fine, but is it possible to change out that horrid font for something else? Like is there a place to load one, etc? My biggest complaint right now is that pixelated font. I'm sure that classic could only use that type of font, use of a modern ttf would be fantastic. Thanks!
"Dagoth Ur is dead. I hope we will no longer be troubled by his dreams. But I wonder, too, what the ghost of a god would be. And can a dead god dream?"

- Hassour Zainsubani

Al-Khwarizmi
Posts: 101
Joined: Sun Mar 22, 2015 9:52 am

Re: Any way to change the font?

Post by Al-Khwarizmi » Wed Aug 01, 2018 7:44 am

I don't know the answer to your question, but apparently it was possible in the defunct DaggerXL:

https://www.moddb.com/mods/daggerxl/add ... eplacement

User avatar
Interkarma
Posts: 3036
Joined: Sun Mar 22, 2015 1:51 am

Re: Any way to change the font?

Post by Interkarma » Wed Aug 01, 2018 9:23 am

There is a tight relationship between Daggerfall's pixel-font dimensions and formatting layout encoded into books, quests, and popup text. Unfortunately, it's not a simple matter of just swapping out the font, as this would have the follow-on effect of breaking formatting across several text containers. There are also many places where text is baked into UI images, so a full replacement would also require graphical mods of most user interfaces. And there are multiple fonts to manage as well...

To get appreciation of how important all of this is, consider that I had to build a fully custom UI system (including custom font rendering) into Daggerfall Unity to reproduce Daggerfall's text and UIs in a pixel-perfect way. It's not using Unity's GUI system or anything else off the shelf.

With all that said, it's definitely possible to mod fonts to a higher resolution. But I would have to first build support into the game and anyone creating replacement font atlases would need to follow a few specific rules. If anyone is willing to take this on, let me know and I'll work with you to outline what's required. Just keep in mind that modding fonts is not a priority right now and your work might not make into the game until after core gameplay is completed.

User avatar
eternalsage
Posts: 6
Joined: Thu Jul 19, 2018 4:42 am

Re: Any way to change the font?

Post by eternalsage » Wed Aug 01, 2018 4:16 pm

Holy crap. Very well then. Ignore my complaints and you keep on with the important stuff. This sounds like a horrible mess that ultimately needs a complete reimplementation which is well beyond the scope of your work. Thanks for the information though!
"Dagoth Ur is dead. I hope we will no longer be troubled by his dreams. But I wonder, too, what the ghost of a god would be. And can a dead god dream?"

- Hassour Zainsubani

User avatar
Interkarma
Posts: 3036
Joined: Sun Mar 22, 2015 1:51 am

Re: Any way to change the font?

Post by Interkarma » Wed Aug 01, 2018 10:04 pm

Yeah, it's all bit of a mess. :) I would like to add support for a higher quality fonts one day, and just need to navigate around a few constraints so it can work in a drop-in kind of way. It's definitely something I want to look at later, and offer remains open if someone is willing to help with this by creating pixel font atlases to my spec.

User avatar
King of Worms
Posts: 630
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow
Contact:

Re: Any way to change the font?

Post by King of Worms » Fri Aug 03, 2018 11:40 am

Hi Interkarma, and what about the cursor? Im quite sure Ive not seen it anywhere in a game files...

User avatar
Interkarma
Posts: 3036
Joined: Sun Mar 22, 2015 1:51 am

Re: Any way to change the font?

Post by Interkarma » Sat Aug 04, 2018 8:15 am

The mouse cursor is found in Arena2/ARROW.RAW. It's just a 10x10 raw image file with no header or anything.

I'm using a hardware cursor in Daggerfall Unity, as I prefer the mouse sampling to be decoupled from screen resolution and refresh. The cursor image I'm using is in Resources/Cursor2.png (a 32x32 upscaled version so it looks nicely point filtered at most resolutions). I'm sure we can make this modable someday. :)

Post Reply