Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1273)

Unified Diff: Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm

Issue 22923010: DevTools: Add CSS.getPlatformFontsForNode in protocol.json (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use HFONT instead of SKTypeface on Win Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm
diff --git a/Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm b/Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm
index aa7a5e72bbafa542c7a8ebc2d04235b123075013..ab3caf3f309e66bb6758e4dc1f55a7f6bfb5ea98 100644
--- a/Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm
+++ b/Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm
@@ -234,6 +234,11 @@ static CTFontDescriptorRef cascadeToLastResortAndDisableSwashesFontDescriptor()
return descriptor;
}
+String FontPlatformData::fontFamilyName() const
+{
+ return String(CTFontCopyDisplayName(ctFont()));
+}
+
CTFontRef FontPlatformData::ctFont() const
{
if (m_CTFont)

Powered by Google App Engine
This is Rietveld 408576698