• R
    Snap advance widths to integers · 6740536e
    Raph Levien 提交于
    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
    6740536e
Layout.cpp 29.4 KB