aliens

Author Topic: Problem with font size  (Read 5415 times)

Offline CityLight

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Problem with font size
« on: June 22, 2014, 11:31:57 pm »
Hello

First of all I want to say that I am active on www.getlocalization.com / openxcom!
But I have no solution for my problem.

Original DOS version 1993


OpenXcom Version


Do you understand what I so with my?
Could we not adapt in the application extension?

Best Regards

PS. I love these games

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: Problem with font size
« Reply #1 on: June 23, 2014, 12:00:03 am »
Do you mean something like this ?
« Last Edit: June 23, 2014, 12:10:23 am by Aldorn »

Offline CityLight

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Problem with font size
« Reply #2 on: June 23, 2014, 12:08:23 am »
No unfortunately not Grammatically correct.
The lettering would have but it only further to the left.

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: Problem with font size
« Reply #3 on: June 23, 2014, 12:10:33 am »
No unfortunately not Grammatically correct.
The lettering would have but it only further to the left.

It seems you are just unlucky, as font is auto sizing depending on length of text to be displayed
Try to add some letters as XXX and you will see the font size downraise

A work around is to fix it by modding : create a file FixGermanLanguage.rul (beware to encode it in UTF-8 before)
Have a look below at the spaces at end of "Auto-Schuss   ", etc...
I do not have the german szet 'B' but you could use it : just add some spaces at the end
Code: [Select]
extraStrings:
  - type: de
    strings:
      STR_ACCURACY_UC: "GENAUIG-KEIT"
      STR_SHOT_TYPE_AUTO: "Auto-Schuss   "
      STR_SHOT_TYPE_SNAP: "Schnellschuss   "
      STR_SHOT_TYPE_AIMED: "Zielschuss   "
For the GENAUIGKEIT, I tried to add some spaces at end "GENAUIGKEIT   " but it did not seem to work
Make your own test, perhaps adding some spaces before "  GENAUIGKEIT  "
Or wait for a developper to help you  ;)

EDIT : To make your tests, you can also directly update the file de.yml but beware next time you install it will be overwritten (also modding is better)
« Last Edit: June 23, 2014, 12:19:00 am by Aldorn »

Offline CityLight

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Problem with font size
« Reply #4 on: June 23, 2014, 12:49:51 am »


ok

Code: [Select]
extraStrings:
  - type: de
    strings:
      STR_SHOT_TYPE_AUTO: "Auto-Schuß  "
      STR_SHOT_TYPE_SNAP: "Schnellschuß "
      STR_SHOT_TYPE_AIMED: "Zielschuß    "


I hope this is the right thing? what do I do with this file FixGermanLanguage.rul?
« Last Edit: June 23, 2014, 01:26:51 am by CityLight »

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: Problem with font size
« Reply #5 on: June 23, 2014, 01:18:18 am »

I hope this is the right thing? what do I do with this file FixGermanLanguage.rul?

It seems ok

Try to add STR_ACCURACY_UC: "  GENAUIGKEIT  " (see above) to try to fix your second issue

Then :
- make a UTF-8 encoded*  file FixGermanLanguage.rul
- install it into your "OpenXcom\Data\Ruleset" folder with other mods
- activate it after startup (under Options > Mod)
- start a game and check in UFOPAEDIA it is fixed

* : menu Encode under Notepad++ => select UTF-8 or UTF-8 without BOM , this is to prevent accent issues, if you ever have accents (so perhaps you don't need)

PS : you can activate "Debug: true" in Options.cfg (under OpenXcom\User folder) then you will be able to use Ctrl+D on battlescape to active debug mode, so that you are able to check all the UFOPAEDIA entries without having to perform research on it (this works for Produce/Research in Base screen too)

Given path are for Win7-x64, and it may depend on your installation

Good luck  :)
« Last Edit: June 23, 2014, 01:25:32 am by Aldorn »

Offline CityLight

  • Sergeant
  • **
  • Posts: 17
    • View Profile
Re: Problem with font size
« Reply #6 on: June 23, 2014, 01:29:35 am »
This is really very helpful thank you.
Many dear greetings from Germany :)

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: Problem with font size
« Reply #7 on: June 23, 2014, 01:52:21 am »
This is really very helpful thank you.
Many dear greetings from Germany :)
You're welcome, now you are a modder  ;)
And feel free to show the result by a new screen shot, it may help other in the future