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

Unified Diff: third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp

Issue 2858573002: Use FreeType for OpenType Variations on CoreText < 10.12 (Closed)
Patch Set: Use FreeType for OpenType Variations on CoreText < 10.12 Created 3 years, 7 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: third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp b/third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..f41d251be97cdff44c0298361c266a5186ff6e12
--- /dev/null
+++ b/third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp
@@ -0,0 +1,20 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "CoreTextVariationsSupport.h"
+
+#include <CoreText/CoreText.h>
+
+namespace blink {
+
+// Compare CoreText.h in an up to date SDK, redefining here since we don't seem
+// to have access to this value when building against the 10.10 SDK in our
+// standard Chrome build configuration.
+static const long kBlinkLocalCTVersionNumber10_12 = 0x00090000;
+
+bool CoreTextVersionSupportsVariations() {
+ return &CTGetCoreTextVersion &&
+ CTGetCoreTextVersion() >= kBlinkLocalCTVersionNumber10_12;
+}
+}

Powered by Google App Engine
This is Rietveld 408576698