Author Topic: MG with small fonts in debian  (Read 1741 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
MG with small fonts in debian
« on: 26 November 2014, 10:09:24 »
As far as I know the fonts cannot be fixed, because debian decided to use other fonts than the fonts the MG team choosed.
https://github.com/MegaGlest/megaglest-data/tree/master/data/core/fonts
MG uses default fonts if the fonts are not found and this might look ugly. So this is nothing we can fix.
Hint hint hint: you can join the debian team for MG maintaining and try to fix it  :angel: :thumbup: :thumbup:
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: MG with small fonts in debian
« Reply #1 on: 26 November 2014, 18:43:39 »
Hehe, have you seen how long are guides for debian maintainers?  :look:
If you are a complete beginner these are months of studying those 1001 rules.  :'(
... and after that on beginning you still have to find your supervisor to accept your work, what again may be few months.  ::)

Well, maybe is possible some workaround in the code? like:
Code: [Select]
if [ $font = $font_used_by_debian ]; then default_font_size=X; fi
or maybe even better some universal test, like "check how many pixels in width takes 'test string'" and if to much "decrease default font size".


titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: MG with small fonts in debian
« Reply #2 on: 26 November 2014, 21:00:14 »
well they can easily set the right font size in glest.ini if they use another font. Just contact the maintainer and tell him about it, he is maybe not aware of the problem or file a "bug" report there.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: MG with small fonts in debian
« Reply #3 on: 26 November 2014, 21:57:19 »
As I know (maybe I'm wrong here) the best (for such as debian worst) way to fix it probably is find and edit settings in each affected languages' files '.lng',

why?
... because MG uses few fonts and if you fix it in glest.ini then probably this fix will broke size of other font at the same time, e.g. chinese etc.

Quote
MG with small fonts in debian
Debian's font is too large.
Below are screens with explanation and example how settings look like. Of course problem is everywhere but on these screens you easily see "scale" of problem.

team's version of v3.9.1 (below)


debian's v default (below)


debian's v with "font size" set here to "-4" (below)


titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: MG with small fonts in debian
« Reply #4 on: 27 November 2014, 09:46:24 »
Yes all true, but what is the conclusion? I think we cannot do anything here if debian decides to use other fonts. If they go with other fonts they have to correct the sizes too :-/ .

Maybe its possible to do some auto adjustment of fonts, but thats a bit hard becaue ou mustr base this size calculation on a letter or a string. But "a" is soemthing that is not really used in Chinese :) , so a font with Chinese letters might not have a correctly sized "a" .

At least we have the font size correction placed in the options so players who look a bit deeper can help themselves.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: MG with small fonts in debian
« Reply #5 on: 27 November 2014, 21:24:33 »
Yes all true, but what is the conclusion? ...
Heh, good question. Conclusion: "Houston, we have a problem" ;D
This question forced me to investigate how long we have this situation and how many languages are affected.

Well, how long?:
Since beginning on debian  :o, [(3.6.0.3-1.2) ... Sun, 21 Oct 2012 16:20:21 +0200]
Glest (probably) wasn't bugged because in this case were (probably) used embedded fonts.

How many languages are affected?
Currently 18  :o ... from 21 :confused:
... every which uses "LinBiolinum_RB.ttf" (17) or "LinLibertine_RB.otf" (1).

Continuation of investigation.
Does debian have package with those fonts (stable and sid)? If yes does this package is enough nice licensed (debian's opinion)?
Answers Yes and Yes.

So, time to fixes:

fix for players:
Code: [Select]
apt-get install fonts-linuxlibertine 

fix note for debian maintainers:
Quote
Please add "fonts-linuxlibertine" (old/dummy name "ttf-linux-libertine") to list of dependencies.
In my opinion someone trusted should inform them about that ^ and as I know softcoder and tomreyn should be best for that.

Status: [hope for fix soon]  :)

GunChleoc

  • Horseman
  • ****
  • Posts: 202
    • View Profile
    • Fòram na Gàidhlig
Re: MG with small fonts in debian
« Reply #6 on: 29 November 2014, 18:55:28 »
We recently had a similar discussion on the Widelands project, and we got some explanations from the Debian maintainer there..

https://bugs.launchpad.net/widelands/+bug/973714

Start reading from #23.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: MG with small fonts in debian
« Reply #7 on: 30 November 2014, 01:39:50 »
Summing up, unless I got it all wrong, everybody seems to agree that this is a (Debian) packaging issue.

(And one which, I think, PlayDeb, doesn't have.)
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: MG with small fonts in debian
« Reply #8 on: 30 November 2014, 02:05:09 »
FYI the current debian dependencies (fonts) that exist are (and these have been since last release):

 fonts-liberation,
 fonts-uralic,
 ttf-dejavu-core,
 ttf-wqy-zenhei,

Do we need to add anything else?

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: MG with small fonts in debian
« Reply #9 on: 30 November 2014, 07:38:57 »
Summing up, unless I got it all wrong, everybody seems to agree that this is a (Debian) packaging issue.
...
Yes  :thumbup:

FYI the current debian dependencies (fonts) that exist are (and these have been since last release):

 fonts-liberation,
 fonts-uralic,
 ttf-dejavu-core,
 ttf-wqy-zenhei,

Do we need to add anything else?
Well answer is available few posts earlier :|.

Current status:

fonts-linuxlibertine: is missing and required to add, because two fonts are present in mg repository and are used by 18/21 languages
[LinBiolinum_RB is available as .otf instead of mg's .ttf but it works]
(click to show/hide)

-----------------------------------------------------------------------------------------------

fonts-liberation: is not used by megaglest and may be even removed
(click to show/hide)

fonts-uralic: one font is present in mg repository
(click to show/hide)

ttf-dejavu-core: name should be changed to fonts-dejavu-core, one font is present in mg repository
(click to show/hide)

ttf-wqy-zenhei: name should be changed to fonts-wqy-zenhei, one font is present in mg repository
(click to show/hide)

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: MG with small fonts in debian
« Reply #10 on: 30 November 2014, 22:23:30 »
I just added fonts-linuxlibertine as a dependency in the debian control file for the next release.

Thanks