Page 1 of 1
Help needed with custom font for localization
Posted: 2019-08-29 20:05
by Undermun
Me and a small team are making the brazilian portuguese localization, but there is a problem: portuguese special characters are not supported. They work fine on the launcher, but in game are invisible.
I had a small conversation with Rpoxo, which recomended me to do not mess with fonts, because they are tricky, unfortunely i concluded that i don't have that option. I don't have any experience with bf2 modding, so any help would be great.
Just to be clear, i am not asking anyone to directey help me, but i asking for tutorials, tools, and things like that, but any direct help is welcome.
Thanks
Re: Help needed with custom font for localization
Posted: 2019-08-29 22:32
by mectus11
I think the best guy to talk to about this is TBob, he's the one who worked on HD Font
https://www.realitymod.com/forum/showth ... light=TBob
Re: Help needed with custom font for localization
Posted: 2019-09-01 00:19
by Undermun
I will try to contact him, but he was last seen in September / 2018 ... so there is no big hopes. But thanks for the suggestion.
Re: Help needed with custom font for localization
Posted: 2019-09-06 23:40
by TBob
Hey, I'm not dead! I'll be happy to answer any font related questions.
This post by AncientMan details the basic operation of BMfont
https://www.realitymod.com/forum/showth ... p?t=140120
I was not able to find the conversion tool listed there, I ended up using my own system to convert them. There is also a C# script to convert them somewhere.
radiosmersh worked on a version of BMfont to output directly to BF2 font format but I have not tried it
https://github.com/radiosmersh/BMFont
Depending on what all needs to be changed the easiest way might just to be copying the characters in the font texture and manually adding the diacritic marks rather than generating a whole new font.
I was originally working on a universal HD font across most localizations but it got put on the back shelf, but I may pick it up again at some point.
Re: Help needed with custom font for localization
Posted: 2019-09-08 03:43
by Undermun
TBob wrote:Hey, I'm not dead! I'll be happy to answer any font related questions.
This post by AncientMan details the basic operation of BMfont
https://www.realitymod.com/forum/showth ... p?t=140120
I was not able to find the conversion tool listed there, I ended up using my own system to convert them. There is also a C# script to convert them somewhere.
radiosmersh worked on a version of BMfont to output directly to BF2 font format but I have not tried it
https://github.com/radiosmersh/BMFont
Depending on what all needs to be changed the easiest way might just to be copying the characters in the font texture and manually adding the diacritic marks rather than generating a whole new font.
I was originally working on a universal HD font across most localizations but it got put on the back shelf, but I may pick it up again at some point.
Thanks for the reply. I am trying to run BMfont by radiosmersh but i wasn't sucessful yet. I can't get the .nsi file running.
I have a few questions:
- How can i inspect the .dif and .dds files? Which one is the bitmap font? How can i open it? You said it's easier to modify the already existent ones.
- Each language has a lot of fonts files, do i need to change them all?