commit | 6740536e3927d25bf5c2567e5f6e8c175973cbb7 | [log] [tgz] |
---|---|---|
author | Raph Levien <raph@google.com> | Wed Sep 03 10:37:05 2014 -0700 |
committer | Raph Levien <raph@google.com> | Wed Sep 03 10:42:52 2014 -0700 |
tree | 65688d617f54510ba27c8688f89af4ddf2c0f5ef | |
parent | 997c799e3ec6bf8adf687e29670d23d91e0f5fee [diff] |
Snap advance widths to integers Fractional advance widths were causing subtle problems with text positioning when the same text was drawn with different spans in the hwui renderer. Quantizing the coordinates on layout (as opposed to waiting until the renderer draws the glyphs) solves the problem. This patch also fixes a discrepancy between x position and advance widths when letterspacing. Bug: 17347779 Change-Id: Ia705944047408c2839d5ad078eefd6bbec446872