![]() |
Seting a new font in a custom window ??
Well, I thought I had it. Here is where I am at. Keep in mind I am only editing one window different then the default skin. (for now)
I added a file FontArial12.xml to my default UI folder. It is an exact copy of the FontArial14.xml file with the font size changed to 12 (I am after a 12 point font) and the name changed to FontArial12 Then I added <include>FontArial12.xml</include> in place in eq2ui_fonts.xml This worked and I can use Fonts.FontArial12 in my window xml file and get the correct font, however, I would like to be able to setup the font info in my own xml custom folder and not modify the default UI to get this working. I tried adding this to the top of my windows xml file <Namespace Name="Fonts"> <TextStyle Algorithm="Simple" FontName="Arial" Language="english" Name="FontArial12" PointSize="12" UseCachedFont="true"/> </Namespace> However I get nothing there. I understand the default way I described above uses includes to get the info into the xml but I cant figure out how to set it up myself? Or am I barking up the wrong tree completly? Sorry for being an XML noob, and thanks for any help. |
Ahhh, I got it :D :D :D
Its a namespace issue, I can setup my own fonts namespace to use First copy the "eq2ui.ini" from default to my custom folder. Then add this line <include>_DreddStyles.xml</include> Next made a file "_DreddStyles.xml" in my custom folder with the following <Namespace Name="Dredd"> <Namespace Name="Fonts"> <TextStyle Algorithm="Simple" FontName="Arial" Language="english" Leading="-2" Name="FontArial12" PointSize="12" UseCachedFont="true"/> </Namespace> </Namespace> Now, I can use in my xml file Font="/Dredd.Fonts.FontArial12" And it works just like I want. Last question though, can I do all this in just my custom window xml file? Or do I have to do it through this system? -Dredd |
yes you got it you must doit just like that which means anyone using your mod will need the font AND your custom .xml you made pointing to it :)
|
| All times are GMT -5. The time now is 11:29 PM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI