Accurately calculate advances in general case. Fixes bug 6833339.

The advance values computed by generateAdvance() were inconsistent with
those computed by generateMetrics, because the fMatrix22 was being
applied in the latter but not former case. Since fMatrix22.xx is 1.0
almost all the time (the exception is only when skew and scale are both
applied), failures were rare.

This patch is an alternative to ag/#/c/207887, in that they both fix the
problem, but in different ways. That patch made fMatrix22.xx equal to
1.0 in almost all cases, while this one gives correct advance values
for arbitrary fMatrix22 values.

Change-Id: Iedfa36e884e3e3e2f078a5d4edfc82004a54e895
1 file changed