Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Call To Power II > CtP2-Source Code Project > custom fonts
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
erjot is offline erjot
Settler
Poznañ, Poland
Jan 2004
time: 05:37
  Old Post 25-08-2005 11:53 Visit erjot's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
custom fonts Support Apolyton buy from Amazon

Hi everyone

I'am makeing a polish translation to CtP2 a have a problem. Is it posible to edit games font's and add custom fonts ? Becouse i need to use some diacritic mark
please help

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:37
Post  Old Post 26-08-2005 01:03 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Lose 30 kilos (of popups)

Well at least I know that the game as font folders, under ..\ctp2_data\default\uidata\font\

And in there is also in the language tree such a folder at least in CTP1, probably you have to put your modified font in there. And you have to modify the UI files I guess to make the game to use this font, or alternatively the modified font overwrites an exsiting font on your system if placed there.

Unfortunatly I never added a customized font, so I don't know much about the details.

However it must be possible since the japanese version, doesn't use anything that looks like a Latain letter.

-Martin

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:37
  Old Post 26-08-2005 01:04 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

I did try changing fonts and I didn't see any effects. must not been the right files. But please let us know if you have any success and to what files you had to change!

erjot is offline erjot
Settler
Poznañ, Poland
Jan 2004
time: 05:37
  Old Post 26-08-2005 02:12 Visit erjot's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

I think that the font are "in game" and I have to edit some game files but i'm not a good programmer.
Can any1 do this , there is a "Source Code Project" and it have to be posible !!

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:37
  Old Post 26-08-2005 02:15 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Suffering from ads?

I don't think so. Give the font files in UI a shot first (you don't have to be a programmer , but if you have questions we'll try and help).

As for the source code project I guess that could be an option if we find out you cant edit fonts through the regular game files with the directory Martin posted.

erjot is offline erjot
Settler
Poznañ, Poland
Jan 2004
time: 05:37
  Old Post 26-08-2005 11:13 Visit erjot's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Lose 30 kilos (of popups)

It's strange, I delete all fonts in game directory even remove font*.ldl from ...Call To Power 2\ctp2_data\english\uidata\layouts. Delete all arial fonts in system directory (but I don't restart the PC) and the the game run smoothly without any errors ? whay ?

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:37
  Old Post 26-08-2005 19:42 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Civilization 2

whoa that is weird. i'm guessing the fonts didnt change either.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:37
Post  Old Post 26-08-2005 19:47 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Lose 30 kilos (of popups)

The font*.ldl files aren't used by the game, see Civ3.ldl there they are outcommented.

Therefore deleting those files does not has any effect.

Deleting the arial fonts should have a minor effect, as only arialbd.ttf is used, at most times times.ttf and timesbd.ttf are used, and the game uses some default fonts.

Maybe that holds also for the operating system. But this is pure speculation.

-Martin

erjot is offline erjot
Settler
Poznañ, Poland
Jan 2004
time: 05:37
  Old Post 26-08-2005 20:19 Visit erjot's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Full PM-box? Change here!

After some tests (moving and adding font files from sys. dir)
I know that the game use; arial.ttf, arialbd.ttf, times.ttf, timesbd.ttf SYSTEM FONT files. (yes your right Martin ) Next step is to force game to use other fonts (can any1 tell me in what games files is defined the "used fonts"; there's something about fonts in Civ3.ldl, are there any other files? )

And how can I edit ttf files.
(Actualy i'm looking at google for some font editor)

/edit/
YEAH , I know how do it
First I put all polish diacritic marks to a game file (ldl_str.txt,
instead of text SINGLE PLAYER to make the job easier) I edited timesbd.ttf file
and then change all symbols thats apper insted text "single player" to the proper polish characters
but ther's an problem two of charakters appers as small rectangles
there are lot of smal rectangles in font files (unused characters)
My question is how to check what charakter is it ?

Last edited by erjot on 26-08-2005 at 21:34

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:37
  Old Post 26-08-2005 21:34 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

editing ttfs will require buying a foonts program i think. they are about $30 and you can make your own fonts (i looked at them awhile back because my mom has a printing business)

but you should be able to specify what fonts to use some where. I tried to change a bunch of font names and nothing ever happened. I guess you have to keep digging.

please dont give up, this would be a nice touch!

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:37
Post  Old Post 27-08-2005 22:18 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Tired of ads?

quote:
Originally posted by erjot
but ther's an problem two of charakters appers as small rectangles
there are lot of smal rectangles in font files (unused characters)
My question is how to check what charakter is it ?


Well, one way would be to compare the font file with a polish font file. I asume you have such a file on your system. However I don't know whether this work and the alternative that gets into my mind isn't such a nice way either: Replaceing all the rectangles in the font file - some tiresome work.

-Martin

erjot is offline erjot
Settler
Poznañ, Poland
Jan 2004
time: 05:37
  Old Post 28-08-2005 01:13 Visit erjot's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

I already repleace ALL the rectangles
("some tiresome work" not at all I use Font Creator 5.0 Trial and it's took me about 30 min )

I figure out that those characters aren't the default characters. The program show it as "nodefine" char.
SO all I have to do is to repleace some unused characters an put instead of them the two polish diacritic mark.
But if I want to use it I have to wright it from ascii code
BUT it's WORK


/edit/

Ok, I finally made the polish font from file timebd.ttf
And now I have an request
hire is a archive thats contains 3 files:
polishctp2.png - this file show how should like the characters look
ldl_str.txt - this is an modifed file you shoult put in ...Call To Power 2\ctp2_data\english\gamedata
timesbd.ttf - the most important file put it in sys. font dir.
(REMEMBER make backup of ldl_str.txt and timesbd.ttf)
http://www.icpnet.pl/~erjot/CtP2Patch/polishCtP2.rar

could anyone test this and tell me (put a screenshot on forum) that does it look like on the polishctp2.png file on his/her PC.

Last edited by erjot on 28-08-2005 at 13:38

Fromafar is offline Fromafar
Prince

May 2003
time: 06:37
  Old Post 30-08-2005 02:08
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

You don't have to put the fonts in the system folder. Putting the fonts in a "language"\uidata\fonts directory will work.

Unfortunately, we don't have a single player button anymore with the playtest release, so this is only partial evidence that it will work.

Attachment: polish.png
This has been downloaded 20 time(s).

erjot is offline erjot
Settler
Poznañ, Poland
Jan 2004
time: 05:37
  Old Post 31-08-2005 00:30 Visit erjot's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

I allready put the font to a "language\uidata\fonts" directory
ok thx at all
It's work, now all i have to do is change my polish translation (it isn't finish) to the "proper" translation
And maybe I start new topic "Polish translation" and see how many polish users is here

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:37.
Apolyton Time is 00:37.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0386 seconds (90.14% PHP - 9.86% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net