• R
    Separate additional penalty for last line with hyphen · a6f8bf6f
    Raph Levien 提交于
    A recent change added a penalty for a hyphen at the last line break,
    which is visually undesirable. However, the penalty was assessed to
    "widthScore", which broke the assumption (used for another
    optimization) that widthScore increases monotonically. This patch
    separates the penalty into a different parameter, restoring the
    validity of the monotonicity assumption.
    
    Bug: 22066119
    Change-Id: I6a47a350ef3ceee2f00ee430d6954d0c307227f0
    a6f8bf6f
LineBreaker.cpp 15.8 KB