⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181740 in webkit


Ignore:
Timestamp:
Mar 19, 2015, 1:55:00 AM (11 years ago)
Author:
bshafiei@apple.com
Message:

Merged r181703. rdar://problem/19446938

Location:
tags/Safari-601.1.23.3/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/Safari-601.1.23.3/Source/WebCore/ChangeLog

    r181739 r181740  
     12015-03-19  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r181703.
     4
     5    2015-03-18  Myles C. Maxfield  <mmaxfield@apple.com>
     6
     7            Call CTFontSetRenderingParameters before rendering text
     8            https://bugs.webkit.org/show_bug.cgi?id=142816
     9
     10            Reviewed by Darin Adler.
     11
     12            No new tests.
     13
     14            * platform/graphics/cocoa/FontCascadeCocoa.mm:
     15            (WebCore::showGlyphsWithAdvances):
     16            * platform/spi/cocoa/CoreTextSPI.h:
     17
    1182015-03-19  Babak Shafiei  <bshafiei@apple.com>
    219
  • tags/Safari-601.1.23.3/Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm

    r181090 r181740  
    162162            position.y += advances[i].height;
    163163        }
    164         if (!platformData.isColorBitmapFont())
     164        if (!platformData.isColorBitmapFont()) {
     165#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101000
     166            CTFontSetRenderingParameters(platformData.ctFont(), context);
     167#endif
    165168            CGContextShowGlyphsAtPositions(context, glyphs, positions.data(), count);
    166         else
     169        } else
    167170            CTFontDrawGlyphs(platformData.ctFont(), glyphs, positions.data(), count, context);
    168171        CGContextSetTextMatrix(context, savedMatrix);
    169172    } else {
    170         if (!platformData.isColorBitmapFont())
     173        if (!platformData.isColorBitmapFont()) {
     174#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101000
     175            CTFontSetRenderingParameters(platformData.ctFont(), context);
     176#endif
    171177#pragma clang diagnostic push
    172178#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    173179            CGContextShowGlyphsWithAdvances(context, glyphs, advances, count);
    174180#pragma clang diagnostic pop
    175         else
     181        } else
    176182            CTFontDrawGlyphs(platformData.ctFont(), glyphs, positions.data(), count, context);
    177183    }
  • tags/Safari-601.1.23.3/Source/WebCore/platform/spi/cocoa/CoreTextSPI.h

    r179283 r181740  
    6666CTTypesetterRef CTTypesetterCreateWithUniCharProviderAndOptions(CTUniCharProviderCallback provide, CTUniCharDisposeCallback dispose, void* refCon, CFDictionaryRef options);
    6767bool CTFontGetVerticalGlyphsForCharacters(CTFontRef, const UniChar characters[], CGGlyph glyphs[], CFIndex count);
     68#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101000
     69void CTFontSetRenderingParameters(CTFontRef, CGContextRef);
     70#endif
    6871
    6972CTFontDescriptorRef CTFontDescriptorCreateForUIType(CTFontUIFontType, CGFloat size, CFStringRef language);
Note: See TracChangeset for help on using the changeset viewer.