MegaGlest Forum
MegaGlest => MegaGlest => Topic started by: titi 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:
-
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:
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".
-
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.
-
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.
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)
(http://i61.tinypic.com/35i53pf.png)
debian's v default (below)
(http://i61.tinypic.com/2m4p1s1.png)
debian's v with "font size" set here to "-4" (below)
(http://i60.tinypic.com/2w24odw.png)
-
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.
-
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:
apt-get install fonts-linuxlibertine
fix note for debian maintainers:
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] :)
-
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.
-
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.)
-
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?
-
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]
/usr/share/fonts/opentype/linux-libertine/LinBiolinum_K.otf
/usr/share/fonts/opentype/linux-libertine/LinBiolinum_R.otf
/usr/share/fonts/opentype/linux-libertine/LinBiolinum_RB.otf
/usr/share/fonts/opentype/linux-libertine/LinBiolinum_RI.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_DR.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_I.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_M.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_R.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_RB.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_RBI.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_RI.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_RZ.otf
/usr/share/fonts/opentype/linux-libertine/LinLibertine_RZI.otf
-----------------------------------------------------------------------------------------------
fonts-liberation: is not used by megaglest and may be even removed
/usr/share/fonts/truetype/liberation/LiberationMono-Bold.ttf
/usr/share/fonts/truetype/liberation/LiberationMono-BoldItalic.ttf
/usr/share/fonts/truetype/liberation/LiberationMono-Italic.ttf
/usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf
/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf
/usr/share/fonts/truetype/liberation/LiberationSans-BoldItalic.ttf
/usr/share/fonts/truetype/liberation/LiberationSans-Italic.ttf
/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf
/usr/share/fonts/truetype/liberation/LiberationSansNarrow-Bold.ttf
/usr/share/fonts/truetype/liberation/LiberationSansNarrow-BoldItalic.ttf
/usr/share/fonts/truetype/liberation/LiberationSansNarrow-Italic.ttf
/usr/share/fonts/truetype/liberation/LiberationSansNarrow-Regular.ttf
/usr/share/fonts/truetype/liberation/LiberationSerif-Bold.ttf
/usr/share/fonts/truetype/liberation/LiberationSerif-BoldItalic.ttf
/usr/share/fonts/truetype/liberation/LiberationSerif-Italic.ttf
/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf
fonts-uralic: one font is present in mg repository
/usr/share/fonts/truetype/uralic/booku___.ttf
/usr/share/fonts/truetype/uralic/bookub__.ttf
/usr/share/fonts/truetype/uralic/bookui__.ttf
/usr/share/fonts/truetype/uralic/chanui__.ttf
/usr/share/fonts/truetype/uralic/gothu___.ttf
/usr/share/fonts/truetype/uralic/gothub__.ttf
/usr/share/fonts/truetype/uralic/monou___.ttf
/usr/share/fonts/truetype/uralic/pallu___.ttf
/usr/share/fonts/truetype/uralic/pallub__.ttf
/usr/share/fonts/truetype/uralic/pallui__.ttf
/usr/share/fonts/truetype/uralic/romau___.ttf
/usr/share/fonts/truetype/uralic/romaub__.ttf
/usr/share/fonts/truetype/uralic/romaui__.ttf
/usr/share/fonts/truetype/uralic/sanscu__.ttf
/usr/share/fonts/truetype/uralic/sanscub_.ttf
/usr/share/fonts/truetype/uralic/sansu___.ttf
/usr/share/fonts/truetype/uralic/sansub__.ttf
/usr/share/fonts/truetype/uralic/sansubi_.ttf
/usr/share/fonts/truetype/uralic/sansui__.ttf
/usr/share/fonts/truetype/uralic/schou___.ttf
/usr/share/fonts/truetype/uralic/schoub__.ttf
/usr/share/fonts/truetype/uralic/schoui__.ttf
ttf-dejavu-core: name should be changed to fonts-dejavu-core, one font is present in mg repository
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
ttf-wqy-zenhei: name should be changed to fonts-wqy-zenhei, one font is present in mg repository
/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc
-
I just added fonts-linuxlibertine as a dependency in the debian control file for the next release.
Thanks