Changeset 98765 in webkit
- Timestamp:
- Oct 28, 2011, 2:41:43 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/mac/fast/css/font-family-pictograph-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/mac/SimpleFontDataMac.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r98763 r98765 1 2011-10-28 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/10288006> Emoji characters are too close to each other in small font size 4 5 Reviewed by Sam Weinig. 6 7 * platform/mac/fast/css/font-family-pictograph-expected.txt: 8 1 9 2011-10-28 Ken Buchanan <kenrb@chromium.org> 2 10 -
trunk/LayoutTests/platform/mac/fast/css/font-family-pictograph-expected.txt
r91777 r98765 5 5 RenderBody {BODY} at (8,8) size 784x584 6 6 RenderBlock {DIV} at (0,0) size 784x95 7 RenderText {#text} at (0,0) size 7 2x958 text run at (0,0) width 7 2: "\x{2665}"7 RenderText {#text} at (0,0) size 73x95 8 text run at (0,0) width 73: "\x{2665}" -
trunk/Source/WebCore/ChangeLog
r98764 r98765 1 2011-10-28 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/10288006> Emoji characters are too close to each other in small font size 4 5 Reviewed by Sam Weinig. 6 7 * platform/graphics/mac/SimpleFontDataMac.mm: 8 (WebCore::SimpleFontData::platformWidthForGlyph): If the font is a color bitmap font, use 9 -[NSFont advancementForGlyph:] instead of wkGetGlyphTransformedAdvances(). 10 1 11 2011-10-28 Adam Barth <abarth@webkit.org> 2 12 -
trunk/Source/WebCore/platform/graphics/mac/SimpleFontDataMac.mm
r95391 r98765 401 401 CGSize advance = CGSizeZero; 402 402 if (platformData().orientation() == Horizontal || m_isBrokenIdeographFallback) { 403 NSFont* font = platformData().font(); 404 float pointSize = platformData().m_size; 405 CGAffineTransform m = CGAffineTransformMakeScale(pointSize, pointSize); 406 if (!wkGetGlyphTransformedAdvances(platformData().cgFont(), font, &m, &glyph, &advance)) { 407 LOG_ERROR("Unable to cache glyph widths for %@ %f", [font displayName], pointSize); 408 advance.width = 0; 403 NSFont *font = platformData().font(); 404 if (font && platformData().isColorBitmapFont()) 405 advance = [font advancementForGlyph:glyph]; 406 else { 407 float pointSize = platformData().m_size; 408 CGAffineTransform m = CGAffineTransformMakeScale(pointSize, pointSize); 409 if (!wkGetGlyphTransformedAdvances(platformData().cgFont(), font, &m, &glyph, &advance)) { 410 LOG_ERROR("Unable to cache glyph widths for %@ %f", [font displayName], pointSize); 411 advance.width = 0; 412 } 409 413 } 410 414 } else
Note:
See TracChangeset
for help on using the changeset viewer.