Font Colours

This forum is for official support and troubleshooting FAQs.

Moderators: JAMiAM, ralphtricky

Post Reply
User avatar
Telumar
Posts: 2336
Joined: Tue Jan 03, 2006 12:43 am

Font Colours

Post by Telumar »

What's the name (in the opart 3 fonts.ini) of this font inside the red box in the screenshot and much more: where can i change it's colour? However i try this colour stays the same.

Image
Attachments
fontcolour.jpg
fontcolour.jpg (103 KiB) Viewed 144 times
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: Font Colours

Post by ralphtricky »

Telumar,
You change the color by changing the values that are labeled Red, Gold and Silver.

[Colors]
ToolTipAlpha=150
ToolTipColor=0x0A9639
ToolTipDelay=10
Gold=0xFFFF84
Red=0xFF0000
Silver=0xCEFFFF

0xFF0000 is Red
0x00FF00 is Green
0x0000FF is Blue

You can mix and match the colors. I'd reccomend using some paint program like Paint.Net (or you can look up the common colors on the internet like Silver and Gold)

Ralph
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
User avatar
Telumar
Posts: 2336
Joined: Tue Jan 03, 2006 12:43 am

RE: Font Colours

Post by Telumar »

I know that, Ralph.

From my initial post it might not become clear what i wanted to know. My question was where in the opart 3 fonts.ini can i change this specific font's ( in the red box in my screenshot) colour?

I tried and tried, could change everything, but not this one. And yes, i changed the global silver...
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: Font Colours

Post by ralphtricky »

Telumar,
That's the medium font, I believe. By default, it's set to using the bitmapped font, so it ignores the color and used the silver bitmapped font file instead. You'd have to modify that and put a new version into the altgraphics folder to change it. You can change to a windows font (I prefer them myself) but you'll lose the SS rune symbols.

Ralph
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
User avatar
Telumar
Posts: 2336
Joined: Tue Jan 03, 2006 12:43 am

RE: Font Colours

Post by Telumar »

Yes, the medium font. Now this might be a problem though a minor one. Because i had already done this:

- I changed 'global silver' to a value more towards beige (works everywhere except in this)
- I have set medium font to windows font=Y
- i also tweaked around with the other fonts' colours, all works well, except this.

This colour also appears in the medium font which normally is/was silver in the combat report and the news string.

EDIT: Also it occures to me the tooltip background can be set either to green or yellow, but nothing else. I chnaged the coulour to blue and it displays yellow, changed to light grey...still yellow.
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: Font Colours

Post by ralphtricky »

Telumar,
Can you please post the font file, and I'll take a look at it.

Thanks,
Ralph
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
User avatar
Telumar
Posts: 2336
Joined: Tue Jan 03, 2006 12:43 am

RE: Font Colours

Post by Telumar »

Here it is:

[Colors]
ToolTipDelay=10
ToolTipAlpha=125
ToolTipColor=0x00BFFF
Background=0x7F7F7F
Gold=0xE4C774
Red=0xFF0000
Silver=0xFFFFCC
[DocumentFont]
TextColor=0xFFFFCC
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=0
Weight=600
Size=9
Font=Verdana
[MediumFont]
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=500
Size=8
Font=Verdana
[SmallFont]
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=500
Size=7
Font=Verdana
[ObjectiveFont]
TextColor=0xFFFFCC
BackColor=0xFFFFFF
windowsFont=N
Outline=Y
Background=N
Spacing=0
Weight=500
Size=10
Font=Arial
[Unicode]
UnicodeFonty=-4
UnicodeFontx=0
UnicodeFont=N
[ToolTipFont]
TextColor=0
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=0
Weight=500
Size=9
Font=Verdana
[SupplyFont]
TextColor=0xFFFFCC
BackColor=0x7F7F7F
windowsFont=N
Outline=Y
Background=N
Spacing=1
Weight=500
Size=9
Font=Verdana
[SmallSupplyFont]
TextColor=0xFFFFCC
BackColor=0x7F7F7F
windowsFont=N
Outline=Y
Background=N
Spacing=1
Weight=500
Size=7
Font=Verdana
[PlaceNameFont]
TextColor=0xFFFFCC
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=600
Size=8
Font=Verdana
[PlaceNameFont1]
TextColor=0xFFFFCC
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=20
Font=Verdana
[PlaceNameFont2]
TextColor=0xFFFFCC
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=10
Font=Verdana
[PlaceNameFont3]
TextColor=0xFFFFCC
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=7
Font=Verdana
[UnitInfoSmallFont]
TextColor=0xE4C774
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=500
Size=7
Font=Verdana
[UnitInfoMediumFont]
TextColor=0xE4C774
BackColor=0x7F7F7F
windowsFont=N
Outline=N
Background=N
Spacing=1
Weight=500
Size=8
Font=Verdana

User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: Font Colours

Post by ralphtricky »

Telumar,
Thanks. Silver is backwards, bgr instead of rgb. Tooltip background is messed up.I believe that it's not only backwards, but one channel, I think it's the red channel, is always going to be 1, making it pretty dark.

I'll see if I can fix that for the release build.

Ralph
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
User avatar
Telumar
Posts: 2336
Joined: Tue Jan 03, 2006 12:43 am

RE: Font Colours

Post by Telumar »

That's why we have a beta release. [:)]
User avatar
Silvanski
Posts: 2511
Joined: Sun Jan 23, 2005 3:16 pm
Location: Belgium, residing in TX-USA

RE: Font Colours

Post by Silvanski »

ORIGINAL: ralphtrick



You can mix and match the colors. I'd reccomend using some paint program like Paint.Net (or you can look up the common colors on the internet like Silver and Gold)

Ralph
A comprehensive list of codes can be found here
http://jdatestamp.sourceforge.net/colors.html

The TOAW Redux Dude
User avatar
vsadek
Posts: 125
Joined: Sun Jan 03, 2010 8:32 am
Location: Zagreb, Croatia

RE: Font Colours

Post by vsadek »

ORIGINAL: Silvanski


A comprehensive list of codes can be found here
http://jdatestamp.sourceforge.net/colors.html


Thanx for sharing! [:)]
Post Reply

Return to “TOAW III Support”