Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: sluke on January 23, 2008, 11:41:56 am

Title: utf-8 font
Post by: sluke on January 23, 2008, 11:41:56 am
Hello,

Is it possible to insert a non-ascii letter like "é" "à" in mission dialog ? (I want to translate some missions in french)

Many thanks
Title: Re: utf-8 font
Post by: Koth on January 23, 2008, 02:29:56 pm
It is possible by using the Ascii codes but most of them don't show up ingame anyway.
Title: Re: utf-8 font
Post by: sluke on January 23, 2008, 03:51:48 pm
For freespace 1, I have the version with french subtitles. And specials letters show correctly... According to you, it isn't possible with freespace 2 ?
Title: Re: utf-8 font
Post by: colecampbell666 on January 23, 2008, 08:02:28 pm
Is that subtitles or mission radio chatter? (is it in the same place as text in the English version? on the top?)
Title: Re: utf-8 font
Post by: karajorma on January 24, 2008, 11:58:50 am
I believe that there is already a French translation of FS2. If you're working on a different campaign DO NOT translate the missions.

http://www.hard-light.net/forums/index.php/topic,51548.0.html

Much better solution.
Title: Re: utf-8 font
Post by: Admiral_Stones on January 24, 2008, 12:47:21 pm
Interesting. Is there also a german translation? AFAIK FS2 was released in german too.
Title: Re: utf-8 font
Post by: colecampbell666 on January 24, 2008, 12:57:59 pm
There was a (fully) translated German version with missions voice etc. People should give Turey the translated VPs to add a radio button to the installer to select language.
Title: Re: utf-8 font
Post by: sluke on January 27, 2008, 07:07:47 am
Quote
Is that subtitles or mission radio chatter?

it's radio chatter and walk-through missions before start mission. Is it possible to edit font01.vf, font02.vf, font03.vf (in sparky_fs2.vp) to add missing letters ? When I replace these files by freepace1 files, "é" "à" display correctly but I have some new display bugs ...
Title: Re: utf-8 font
Post by: karajorma on January 27, 2008, 08:23:47 am
Volition gave us a font tool when they released the source. Never used it though.
Title: Re: utf-8 font
Post by: sluke on January 28, 2008, 01:33:39 pm
Where can I find this tool ? Or can I know its name ?

Many thanks
Title: Re: utf-8 font
Post by: karajorma on January 30, 2008, 06:02:53 pm
Quote
- Fonttool. A simple utility for generating and kerning the font files FS2 uses.

That's all I really know about it. Can't say I ever tried it. I'll try downloading and building it tomorrow.
Title: Re: utf-8 font
Post by: sluke on February 02, 2008, 05:19:16 am
OK thanks  :)
Title: Re: utf-8 font
Post by: karajorma on February 03, 2008, 12:11:54 pm
FontTool (http://www.freespacefaq.com/Misc-Downloads/Fonttool.7z). The release build gave me 53 Errors when building it so I gave you the debug version. I have absolutely no idea how to work this thing or use any fonts you do manage to make it spit out so anyone who wants to try it is on their own.