]> git.cworth.org Git - acre/commit
Force an identity matrix when creating a pango layout
authorCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 21:22:00 +0000 (13:22 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 21:22:00 +0000 (13:22 -0800)
commit970682d49861e98bdad635128b9db3cbee48ffec
tree3caa1e23de6eac44849a57f6ddc96cac15c76f17
parent2c0f51b31a3f32c091ae04632f7d8e424f734577
Force an identity matrix when creating a pango layout

I've been seeing strange effects in the font rendering when zooming in
dramatically. Inter-character and inter-word spacing was becoming
radically large or radically close to zero, (with overlapping
characters, etc.).

I assume the problem has something to do with numbers outside the
representable range of Pango's fixed-width implementation, (see "pango
units"). Simply setting an identity matrix before creating the layout
and selecting the font clears up all problems that I have seen so far.
acre.c