DescriptionAdd heuristic to LayoutTextControl::hasValidAvgCharWidth()
This patch adds a heuristic check to see if the font has invalid
avgCharWidth.
The spec is silent about how avgCharWidth is computed for CJK fonts,
and some fonts selected to match to CJK full-width characters.
Since in most fonts, avgCharWidth is close to the width of "0", when
it's too big compared to the width of "0" can be considered as invalid.
BUG=625058
Committed: https://crrev.com/77183f3386fcb2362ca6140ab5fb15958d7cfa2d
Cr-Commit-Position: refs/heads/master@{#405086}
Patch Set 1 #
Total comments: 4
Messages
Total messages: 16 (5 generated)
|