Changeset 149474 in webkit


Ignore:
Timestamp:
May 1, 2013 6:48:55 PM (11 years ago)
Author:
enrica@apple.com
Message:

text-combine: horizontal does not work properly for some fonts.
https://bugs.webkit.org/show_bug.cgi?id=115503.

Reviewed by Dave Hyatt.

Source/WebCore:

For some fonts that don't have width variants, we fail to combine glyphs
because we believe they don't fit. That decision is made comparing the run width
with the font computed size multiplied by a margin factor.
I've increased the margin from 10% to 15%.

Test: fast/text/text-combine-different-fonts.html

  • rendering/RenderCombineText.cpp:

LayoutTests:

  • fast/text/text-combine-different-fonts.html: Added.
  • platform/mac/fast/text/text-combine-different-fonts-expected.png: Added.
  • platform/mac/fast/text/text-combine-different-fonts-expected.txt: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r149470 r149474  
     12013-05-01  Enrica Casucci  <enrica@apple.com>
     2
     3        text-combine: horizontal does not work properly for some fonts.
     4        https://bugs.webkit.org/show_bug.cgi?id=115503.
     5
     6        Reviewed by Dave Hyatt.
     7
     8        * fast/text/text-combine-different-fonts.html: Added.
     9        * platform/mac/fast/text/text-combine-different-fonts-expected.png: Added.
     10        * platform/mac/fast/text/text-combine-different-fonts-expected.txt: Added.
     11
    1122013-05-01  Stephanie Lewis  <slewis@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r149469 r149474  
     12013-05-01  Enrica Casucci  <enrica@apple.com>
     2
     3        text-combine: horizontal does not work properly for some fonts.
     4        https://bugs.webkit.org/show_bug.cgi?id=115503.
     5
     6        Reviewed by Dave Hyatt.
     7
     8        For some fonts that don't have width variants, we fail to combine glyphs
     9        because we believe they don't fit. That decision is made comparing the run width
     10        with the font computed size multiplied by a margin factor.
     11        I've increased the margin from 10% to 15%.
     12         
     13        Test: fast/text/text-combine-different-fonts.html
     14
     15        * rendering/RenderCombineText.cpp:
     16
    1172013-05-01  Joseph Pecoraro  <pecoraro@apple.com>
    218
  • trunk/Source/WebCore/rendering/RenderCombineText.cpp

    r131311 r149474  
    2727namespace WebCore {
    2828
    29 const float textCombineMargin = 1.1f; // Allow em + 10% margin
     29const float textCombineMargin = 1.15f; // Allow em + 15% margin
    3030
    3131RenderCombineText::RenderCombineText(Node* node, PassRefPtr<StringImpl> string)
Note: See TracChangeset for help on using the changeset viewer.