Seriously, WTF?
I'm trying to use my own fonts, but UT is giving me endless grief. Here are the steps I took:
1. exported a few fonts from UT2003Fonts.utx and imported them into my own package CMDFonts.utx. FontEurostile14, 17, and 21 specifically. Put each in its own group the same as UT2003Fonts does it, along with the _PageADXT suffix on the textures.
2. subclassed all UT2***Font.uc classes with CMD***Font.uc
3. told CMDHeaderFont.uc to use my own fonts in CMDFonts.utx, and left the other font types as-is.
4. in my subclassed CMDGUIController, replace all entries of FontStack with my own derived classes. Basically a copy/paste from GUIController.uc and replaced relevant parts.
CMDHeaderFont governs the text buttons in UT main menu, so it was easy to see it it worked or not. Well, it wasn't using any fonts at all, it was just a blank menu. The logfile says this:
Warning: Failed to load 'Font CMDFonts.FontEurostile17': Failed to find object 'Font CMDFonts.FontEurostile17'
Log: Warning: GUIHeaderFont could not load font CMDFonts.FontEurostile17
Hmm. It can't find them. So I copied UT2003Fonts.utx, renamed it CMDFonts.utx and ran it again. And it worked. I was even able to play around with the fonts I had exported and then re-import them into CMDFonts.utx and it worked as you'd expect.
So now I have a 6 MB package that is full of fonts I don't need. So naturally, I tried to delete most of them, but it wouldn't let me. CANNOT DELETE. TEXTURE IS IN USE. Argh... so I'm stuck with all of them.
So I guess there are 2 questions here. How do I get it to load fonts out of my own package, or how do I trick UEd into letting me delete fonts out of the cloned package?



Reply With Quote

Bookmarks