Changing Fonts

Norm Koger's The Operational Art of War III is the next game in the award-winning Operational Art of War game series. TOAW3 is updated and enhanced version of the TOAW: Century of Warfare game series. TOAW3 is a turn based game covering operational warfare from 1850-2015. Game scale is from 2.5km to 50km and half day to full week turns. TOAW3 scenarios have been designed by over 70 designers and included over 130 scenarios. TOAW3 comes complete with a full game editor.

Moderators: JAMiAM, ralphtricky

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

Changing Fonts

Post by ralphtricky »

The 3.4 patch added support for using 'real' windows fonts instead of bitmaps. It was added mainly for support of non european languages. You don't have to edit these, and I suspect that most people will use either the standard file, or will use one that they download. If you mess it up too much, delete it and TOAW will create one for you.

Creating the default was a compromise of several different objectives.
We wanted to use the bitmapped font in most of the places where a unit name was displayed. That is because the SS runes are only available there.
We tried to mostly use fonts available for Windows XP. I believe that we did use a couple of fonts that are only available if you installed either Office, one of the Office viewers or Windows 7.

A couple for things for brave people to try... See if you agree that the windows 7 fonts are better. I had some problems in that they would sometimes 'bleed' out of the boxes but I felt that they were easier to read than the bitmaps.

There's a file called Opart 3 Fonts.ini in the Matrix Games/The Operational Art of War directory. It's somewhat self-explanatory, except for the 'unicode' entries. These are intended for anyone that wants to try using a language like Chinese instead of English. I did what I could to support that, but I can't read Chinese so I don't know how well I did.

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
vsadek
Posts: 125
Joined: Sun Jan 03, 2010 8:32 am
Location: Zagreb, Croatia
Contact:

RE: Changing Fonts

Post by vsadek »

Opart 3 Fonts.ini

Hello Ralph!

Thank you for this info. I thought that support for Windows fonts is already implemented into 3.2.29.27 version of TOAW III. I successfully edited Opart 3 Fonts.ini file in 3.2.29.27 and using some of the Win fonts: Calibri as [DocumentFont] and [ObjectiveFont] and Tahoma as [MediumFont] and [SmallFont].
User avatar
alexzhz
Posts: 85
Joined: Sun Nov 25, 2007 3:32 am

RE: Changing Fonts

Post by alexzhz »

Well done! Ralph. There's some problems in display of Chinese charactors after patching the 3.4 patch, however, by modifying Opart 3 Fonts.ini and deleting Opart 3 Fonts Chinese.ini, we successfully solved the problem. It seems there's no need to make an font file only for Chinese, actrually, Chinese and other languages can share the same Opart 3 Fonts.ini.
User avatar
alexzhz
Posts: 85
Joined: Sun Nov 25, 2007 3:32 am

RE: Changing Fonts

Post by alexzhz »

Image
Well, let's see, this is the problem after patching the new patch. By selecting Chinese language, What it displayed is neither Chinese nor any other languages.

So we changed the original ini file, and now both Chinese and English can display in a proper way, with the same ini file.
Image

Image
User avatar
alexzhz
Posts: 85
Joined: Sun Nov 25, 2007 3:32 am

RE: Changing Fonts

Post by alexzhz »

And here's the ini configuration

[Colors]
ToolTipDelay=10
ToolTipAlpha=150
ToolTipColor=0x0A9639
Background=0x7F7F7F
Gold=0xFFD400
Red=0xFF0000
Silver=0xFDF5E6
[DocumentFont]
TextColor=0xFFFFFF
BackColor=0x7F7F7F
windowsFont=Y
Outline=N
Background=N
Spacing=0
Weight=400
Size=9
Font=Arial
[MediumFont]
BackColor=0x7F7F7F
windowsFont=Y
Outline=N
Background=N
Spacing=1
Weight=400
Size=8
Font=Arial bold
[SmallFont]
BackColor=0x7F7F7F
windowsFont=Y
Outline=N
Background=N
Spacing=2
Weight=400
Size=7
Font=Arial bold
[ObjectiveFont]
TextColor=0xFFFF84
BackColor=0xFFFFFF
windowsFont=Y
Outline=Y
Background=N
Spacing=0
Weight=400
Size=15
Font=Arial bold
[Unicode]
UnicodeFonty=-4
UnicodeFontx=0
UnicodeFont=N
[ToolTipFont]
TextColor=0
BackColor=0x7F7F7F
windowsFont=Y
Outline=N
Background=N
Spacing=0
Weight=500
Size=12
Font=Times New Roman
[SupplyFont]
TextColor=0xFFFFFF
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=9
Font=Times New Roman
[SmallSupplyFont]
TextColor=0xFFFFFF
BackColor=0x7F7F7F
windowsFont=N
Outline=Y
Background=N
Spacing=1
Weight=900
Size=9
Font=Times New Roman
[PlaceNameFont]
TextColor=0xCEFFFF
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=10
Font=Times New Roman
[PlaceNameFont1]
TextColor=0xCEFFFF
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=20
Font=Times New Roman
[PlaceNameFont2]
TextColor=0x00BFFF
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=10
Font=Times New Roman
[PlaceNameFont3]
TextColor=0xCEFFFF
BackColor=0x7F7F7F
windowsFont=Y
Outline=Y
Background=N
Spacing=1
Weight=900
Size=7
Font=Times New Roman
[UnitInfoSmallFont]
TextColor=0xFFFF84
BackColor=0x7F7F7F
windowsFont=N
Outline=Y
Background=N
Spacing=1
Weight=900
Size=7
Font=Times New Roman
[UnitInfoMediumFont]
TextColor=0xFFFF84
BackColor=0x7F7F7F
windowsFont=N
Outline=N
Background=N
Spacing=1
Weight=900
Size=8
Font=Times New Roman
User avatar
Panama
Posts: 1362
Joined: Fri Oct 30, 2009 1:48 pm

RE: Changing Fonts

Post by Panama »

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

RE: Changing Fonts

Post by ralphtricky »

ORIGINAL: Spider

Well done! Ralph. There's some problems in display of Chinese charactors after patching the 3.4 patch, however, by modifying Opart 3 Fonts.ini and deleting Opart 3 Fonts Chinese.ini, we successfully solved the problem. It seems there's no need to make an font file only for Chinese, actrually, Chinese and other languages can share the same Opart 3 Fonts.ini.
Awesome! I thought I'd tried that. It could be that I was having problems becuase I was running English as the language for Windows 7, but running a Chinese scenario??

Let me know if you run into any problems with it (other than the vertical spacing, I can't fix that until 4 comes out.
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
Grimnirsson
Posts: 132
Joined: Sun Dec 25, 2011 7:17 pm
Contact:

RE: Changing Fonts

Post by Grimnirsson »

We changed the fonts too but not to Chinese [;)] the bitmap fonts were too hard to read really and it now is just wonderful (like the whole game!).
But as it was said here the SS runes are not available. That wouldn't bother me that much, but we have just two 'square signs' now as a placeholder (playing a downloaded Arnhem scenario). Wouldn't it be possible to have at least SS standing there? How could we change a windows font that it will display two S characters instead of two weird signs?

Thanks [:)]
Image
User avatar
Grimnirsson
Posts: 132
Joined: Sun Dec 25, 2011 7:17 pm
Contact:

RE: Changing Fonts

Post by Grimnirsson »

Anyone? Any idea??
Image
User avatar
sPzAbt653
Posts: 10041
Joined: Thu May 03, 2007 7:11 am
Location: east coast, usa

RE: Changing Fonts

Post by sPzAbt653 »

No idea about the possibility of font changes, but you could open the scenario in the editor and change the '?' in the unit names to 'SS' manually. Should only take a couple minutes, but you will have to start the scenario over for the change to take effect. [:@]
User avatar
Grimnirsson
Posts: 132
Joined: Sun Dec 25, 2011 7:17 pm
Contact:

RE: Changing Fonts

Post by Grimnirsson »

Thanks, but that exactly is what I try to avoid [;)]
I thought more about a possibility to have the signs changed into SS where the scenario is getting the fonts from or something like that, so that it would always work no mater the scenario.
Image
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: Changing Fonts

Post by 1_Lzard »

Well, looks like you need to give the bitmap fonts another go! Try ms sans serif and change the size, eh? This should give you the SS as runes.

Work around with it, works for me........
"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
User avatar
Grimnirsson
Posts: 132
Joined: Sun Dec 25, 2011 7:17 pm
Contact:

RE: Changing Fonts

Post by Grimnirsson »

Lzard,

any chance that you could post your opfont.ini here? Would like to take a look and perhaps it works for me as well so I can skip the 'workaround' part [;)]

Thanks
Image
User avatar
1_Lzard
Posts: 277
Joined: Wed Aug 18, 2010 7:36 pm
Location: McMinnville, OR

RE: Changing Fonts

Post by 1_Lzard »

Andreas,
 
Yes, I DID miss this..........anyway:
 
 [Colors]
 ToolTipDelay=10
 ToolTipAlpha=150
 ToolTipColor=0x0A9639
 Background=0x7F7F7F
 Gold=0xFFD700
 Red=0xFF0000
 Silver=0xFFFFFF
 [DocumentFont]
 TextColor=0xFFFFFF
 BackColor=0x7F7F7F
 windowsFont=N
 Outline=N
 Background=Y
 Spacing=0
 Weight=700
 Size=10
 Font=Arial
 [MediumFont]
 BackColor=0x7F7F7F
 windowsFont=N
 Outline=N
 Background=Y
 Spacing=1
 Weight=900
 Size=8
 Font=MS San Serif
 [SmallFont]
 BackColor=0x7F7F7F
 windowsFont=N
 Outline=N
 Background=Y
 Spacing=1
 Weight=900
 Size=7
 Font=MS San Serif
 [ObjectiveFont]
 TextColor=0xFFFF84
 BackColor=0xFFFFFF
 windowsFont=N
 Outline=Y
 Background=N
 Spacing=0
 Weight=900
 Size=12
 Font=Arial
 [Unicode]
 UnicodeFonty=-4
 UnicodeFontx=0
 UnicodeFont=N
 [ToolTipFont]
 TextColor=0
 BackColor=0x7F7F7F
 windowsFont=Y
 Outline=N
 Background=N
 Spacing=0
 Weight=500
 Size=12
 Font=Times New Roman
 [SupplyFont]
 TextColor=0xFFFFFF
 BackColor=0x7F7F7F
 windowsFont=Y
 Outline=Y
 Background=N
 Spacing=1
 Weight=900
 Size=9
 Font=Times New Roman
 [SmallSupplyFont]
 TextColor=0xFFFFFF
 BackColor=0x7F7F7F
 windowsFont=N
 Outline=Y
 Background=N
 Spacing=1
 Weight=900
 Size=9
 Font=Times New Roman
 [PlaceNameFont]
 TextColor=0xCEFFFF
 BackColor=0x7F7F7F
 windowsFont=Y
 Outline=Y
 Background=N
 Spacing=1
 Weight=900
 Size=10
 Font=Times New Roman
 [PlaceNameFont1]
 TextColor=0xCEFFFF
 BackColor=0x7F7F7F
 windowsFont=Y
 Outline=Y
 Background=N
 Spacing=1
 Weight=900
 Size=20
 Font=Times New Roman
 [PlaceNameFont2]
 TextColor=0x00BFFF
 BackColor=0x7F7F7F
 windowsFont=Y
 Outline=Y
 Background=N
 Spacing=1
 Weight=900
 Size=10
 Font=Times New Roman
 [PlaceNameFont3]
 TextColor=0xCEFFFF
 BackColor=0x7F7F7F
 windowsFont=Y
 Outline=Y
 Background=N
 Spacing=1
 Weight=900
 Size=7
 Font=Times New Roman
 [UnitInfoSmallFont]
 TextColor=0xFFFF84
 BackColor=0x7F7F7F
 windowsFont=N
 Outline=Y
 Background=N
 Spacing=1
 Weight=900
 Size=7
 Font=Times New Roman
 [UnitInfoMediumFont]
 TextColor=0xFFFF84
 BackColor=0x7F7F7F
 windowsFont=N
 Outline=N
 Background=N
 Spacing=1
 Weight=900
 Size=8
 Font=Times New Roman
 
Enjoy!
"I have the brain of a Genius, and the heart of a Little Child. I keep them in a jar under my bed!"
sad git
Posts: 12
Joined: Fri Jul 30, 2010 3:25 pm

RE: Changing Fonts

Post by sad git »

My attempt:-

Image

Mainly the MS San Serif font (Windows), default sizes, with Outline. It looks clearer to read to me, albeit a bit squashy occasionally. Placenames are in Comic Sans MS which I think looks quite nice.

The documentation does actually say specifically that you're not meant to use Windows fonts except for placenames. Oops!

User avatar
Panama
Posts: 1362
Joined: Fri Oct 30, 2009 1:48 pm

RE: Changing Fonts

Post by Panama »


Ditto on the Comic Sans MS. Trying yellow fill for now.





Image
Attachments
shot1.jpg
shot1.jpg (179.73 KiB) Viewed 287 times
Post Reply

Return to “Norm Koger's The Operational Art Of War III”