]> git.xonotic.org Git - xonotic/xonstat.git/commit
Merge branch 'sev/xolonium4-badges' into 'master'
authorAnt Zucaro <azucaro@gmail.com>
Sun, 6 Nov 2016 00:58:59 +0000 (00:58 +0000)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 6 Nov 2016 00:58:59 +0000 (00:58 +0000)
commitcaa86432988acf03266fb7cd81eb49b378f0b8b0
tree16c213b9aa7e7715e515de8cc5967985b71ea5b0
parent389887d4b6f117ac778dc54b9345fe584e7a29f4
parent47f96d0ec8600ad320e8407ac0b5c8d81ca8a189
Merge branch 'sev/xolonium4-badges' into 'master'

Render badges with Xolonium 4.0

I have recently finished Xolonium 4.0, available [here](https://fontlibrary.org/en/font/xolonium).
Most notably, it now also includes a hinted ttf version. As a result, it should be possible to render the badges with sharper text.

Now, there is no point in just telling you this, so I pushed this branch as a potential update for the badge scripts. It adds the necessary hinting options and slightly adjusts some of the font sizes and positions, to optimize the result. Of course, it is necessary to install the new ttf version first.

Old/New:
![badges-x4](/uploads/d7334628b9d396332c41bb832f409c8e/badges-x4.png)

I also have noticed that the rendered badge images are quite heavy. It would be fairly easy to cut their size by reducing the colors to 8bit, without a noticable effect on quality. I have added an exemplary script (optimize.sh), which could reduce file sizes by almost half.

See merge request !3
xonstat/batch/badges/gen_badges.py