WebCore:
Reviewed by Darin Adler and Sam Weinig.
- <rdar://problem/
4433248> use CoreText API instead of SPI on Leopard
Use CTFontCopyGraphicsFont and CTFontGetPlatformFont on Leopard instead
of wkGetCGFontFromNSFont and wkGetNSFontATSUFontId, relying on NSFont
and CTFontRef being toll-free bridged.
* WebCore.Tiger.exp:
* WebCore.base.exp:
* platform/graphics/mac/FontMac.mm:
(WebCore::Font::drawGlyphs): Changed to use the cgFont() accessor.
* platform/graphics/mac/FontPlatformData.h:
Made m_cgFont a RetainPtr on Leopard.
(WebCore::toCTFontRef): Added a function that encapsulates the
toll-free bridging.
(WebCore::FontPlatformData::FontPlatformData):
(WebCore::FontPlatformData::cgFont): Added this accessor method.
* platform/graphics/mac/FontPlatformDataMac.mm:
(WebCore::FontPlatformData::FontPlatformData): Changed to use
CoreText API on Leopard.
(WebCore::FontPlatformData::setFont): Ditto.
* platform/graphics/mac/SimpleFontDataMac.mm:
(WebCore::initFontData):
(WebCore::pathFromFont):
(WebCore::SimpleFontData::platformInit):
(WebCore::SimpleFontData::platformWidthForGlyph):
* platform/mac/WebCoreSystemInterface.mm:
WebKit/mac:
Reviewed by Darin Adler and Sam Weinig.
- <rdar://problem/
4433248> use CoreText API instead of SPI on Leopard
* WebCoreSupport/WebSystemInterface.m:
(InitWebCoreSystemInterface): Made WKGetCGFontFromNSFont and
WKGetNSFontATSUFontId Tiger-only.
WebKitLibraries:
Reviewed by Darin Adler and Sam Weinig.
- <rdar://problem/
4433248> use CoreText API instead of SPI on Leopard
* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLeopard.a:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30997
268f45cc-cd09-0410-ab3c-
d52691b4dbfc