]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3483: Pango font size should be calculated using rounding
authorDavid Kastrup <dak@gnu.org>
Thu, 1 Aug 2013 10:20:24 +0000 (12:20 +0200)
committerDavid Kastrup <dak@gnu.org>
Thu, 8 Aug 2013 07:30:57 +0000 (09:30 +0200)
commit6e8698dcb9a9b9a98d8b1a644c84fcb737f99bdc
treeb5039a70633ed5887e7c362bc2c368c1ecae572d
parentf8d17f1f0f891280bb7d3ee498c3ba175ae4343a
Issue 3483: Pango font size should be calculated using rounding

So far, pango font size has been calculated using truncation.  Since
the calculation of font size may involve conversion of magnifications
to font-size and back, numerical errors can easily throw the
calculation slightly off.  For that reason, rounding is the
appropriate option here.
lily/pango-select.cc
lily/paper-def.cc