View Full Version : font color on character sheets
Redwulfe
March 14th, 2013, 04:36
So I am looking at a character sheet in SR4 ruleset and the text under some of the fields is grey and almost matches the background color making them hard to read. Is there a way to change the font color?
Red
Zeus
March 14th, 2013, 08:45
FGII uses bitmapped fonts which are defined along with their color in the ruleset files. Typically either graphics.xml or graphics_font.xml. Here's an example definition.
<font name="WhiteFont">
<fgffile name="graphics/fonts/basic-bold-8.fgf" />
<color value="#FFFFFF" />
</font>
You will first need to identify the name of the registered font being used in the char sheet so as to locate the correct definition in the graphics.xml or graphics_font.xml files. You can the edit the <color> tag RGB color value to match which ever color you require. The above example sets the color to brilliant white or #FFFFFF, if you wanted pure Black you would set it to #000000.
Redwulfe
March 14th, 2013, 16:08
yep fond that and changed the only color I saw under the character sheet section to black, but no dice.
Went to the character sheet xml that dealt with the section that I wish to change and this is the code that sets the position of the text I think.
<string_labeled name="name">
<anchored>
<to>overviewframe</to>
<position>insidetopleft</position>
<offset>15,10</offset>
<size>
<width>140</width>
<height>20</height>
</size>
</anchored>
<anchorto>overviewframe</anchorto>
<height>20</height>
<label>Name</label>
<tabtarget>
<next>metatype</next>
</tabtarget>
<tooltip>
<text>Name of your Character</text>
</tooltip>
</string_labeled>
went to the library to find string_labeled but couldn't find it. Can I add a tag to chnge the color to equal one of the colors in the Graphic font XML file? or can I set the color from within the string_labeled tag?
Thanks for all the help, I really appreciate it.
Red
Zeus
March 14th, 2013, 17:32
<string_labeled> is a template name. It will be defined in one of the trmplate_*.xml files in the ruleset. You will need to either edit the template or override the <font> the template is using from within the control (you can do this by adding a <font> ... </font> tag inside the <string_labeled> control.
Redwulfe
March 14th, 2013, 21:11
Thanks for all your help it was really helpful.
The override didn't seem to work but I fond where the color was coming from finally in another part of the fonts file and got it changed.
Red
dstuffle
August 20th, 2013, 01:01
Do you mind sharing which file you found this in?
Update: Found it.
It is in graphics --> graphics_fonts.xml and the font you need to change is <font name="sheetlabelinline"> change the color from #808080 to #000000.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.