]> git.tdb.fi Git - ttf2png.git/commit
Fix scaling of font ascent and descent
authorMikko Rasa <tdb@tdb.fi>
Thu, 3 May 2018 10:06:26 +0000 (13:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 3 May 2018 11:11:35 +0000 (14:11 +0300)
commit95a574b6cbf90e1ceee50a71643fc1bec43f554a
tree09091957e0e4d92154650b2969f71d9e30ad0bc8
parent17b96c26c5624aba41eb1d11cb5d2bf2d05982f5
Fix scaling of font ascent and descent

Descent value is often negative and right-shifting a negative value is
implementation-defined.  Best to avoid it.

Also round descent down instead of up.
ttf2png.c