Log in

View Full Version : Problem after changing fonts



meathome
January 20th, 2007, 14:54
Hi, im working on a ruleset modification, me and my group absolutely need bigger fonts in the chat window, so i went ahead and changed them, but after changing the regular.fgf, regularitalic.fgf, etc. fonts, link texts are no longer visible in the reference, because the font is too big. So i need a way to for example change only the font of the chat window (i tried using a font tag in the definition of the chatwindow in gameelements.xml but it did nothing) , or for customizing the appearance of links, i found nothing on either with the search function. So any help would be appreciated.
Thanks!

TarynWinterblade
January 22nd, 2007, 01:09
What you'll want to do, instead of changing the regular.fgf, etc etc files themselves, you'll want to put a new file into your ruleset, and add the following to the base.xml file:



<font name="chatfont">
<fgffile name="data\fonts\regular.fgf" />
<color value="#000000" />
</font>

<font name="chatitalicfont">
<fgffile name="data\fonts\regularitalic.fgf" />
<color value="#000000" />
<italic />
</font>

<font name="chatbolditalicfont">
<fgffile name="data\fonts\regularbolditalic.fgf" />
<color value="#000000" />
<italic />
</font>

<font name="npcchatfont">
<fgffile name="data\fonts\regular.fgf" />
<color value="#000066" />
</font>

<font name="dmfont">
<fgffile name="data\fonts\regularitalic.fgf" />
<color value="#000000" />
</font>

<font name="narratorfont">
<fgffile name="data\fonts\regularbold.fgf" />
<color value="#000000" />
</font>

<font name="systemfont">
<fgffile name="data\fonts\regular.fgf" />
<color value="#660066" />
</font>

<font name="oocfont">
<fgffile name="data\fonts\regular.fgf" />
<color value="#005500" />
</font>

<font name="msgfont">
<fgffile name="data\fonts\regularbold.fgf" />
<color value="#660066" />
</font>

<font name="emotefont">
<fgffile name="data\fonts\regular.fgf" />
<color value="#880000" />
</font>


... changing the path in the fgffile tag as necessary.

One thing I noticed, though, is that any change at all seems to disable the aliasing on the font, as when I tried to change the color, it wasn't aliased at all and looked rather horrible (made it harder to read, rather than easier, as I was hoping).

meathome
January 22nd, 2007, 11:24
Thanks, i already tried that, and am using different fonts for most things, but where and how can i set the chat window to use a custom font? i tried <font name="myfont" /> in the section that defines the chatwindow in gameelements. (where myfont is defined in bmpfonts.xml and the font works in other elements) but it didnt do anything. Thats why i tried changing the regular.fgf etc. , but had the problem with invisible link text after that. So is it even possible to assign different fonts than the regular ones to the chatwindow?

TarynWinterblade
January 23rd, 2007, 03:34
Yes. The code posted above is the code that defines each of the fonts used for the chat window.

<font name="chatfont"> specifies the font used for default chat, dmfont defines the font used for DM specific chat, etc etc.

If you add that code in, and change it to point to a new font file, you'll only change the font for the chat window (or at least it should)