DescriptionCorrect font not selected to calculate text run width
Original patch: https://codereview.chromium.org/680213004
Breaking original patch into two parts for better tracking.
In RenderText.cpp, when width of text run is calculated sometimes
different fonts are used to get width of string which is different than
the font used to draw text.
This happens due to fallback font architecture which results in font
change. We need to make call to calculate width only when primary font
has a glyph for the requested codepoint.
BUG=416425
TEST=fast/css/font-face-opentype.html, fast/text/line-break-after-question-mark.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187387
Patch Set 1 #
Total comments: 4
Patch Set 2 : Comment fixes #Patch Set 3 : Updating Test Expectation file #
Messages
Total messages: 23 (9 generated)
|