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

Unified Diff: src/core/SkFontMgr.cpp

Issue 1027373002: Font variations. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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: src/core/SkFontMgr.cpp
diff --git a/src/core/SkFontMgr.cpp b/src/core/SkFontMgr.cpp
index 4e0f549896c58abde1bcd7854eb48202b0381cdf..9ae885de7204fdeda78c4f69081490cc2c4aa5c0 100644
--- a/src/core/SkFontMgr.cpp
+++ b/src/core/SkFontMgr.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkFontDescriptor.h"
#include "SkFontMgr.h"
#include "SkLazyPtr.h"
#include "SkStream.h"
@@ -133,6 +134,17 @@ SkTypeface* SkFontMgr::createFromStream(SkStreamAsset* stream, int ttcIndex) con
return this->onCreateFromStream(stream, ttcIndex);
}
+SkTypeface* SkFontMgr::createFromStream(SkStreamAsset* stream, const SkFontParameters& params) const {
+ if (NULL == stream) {
+ return NULL;
+ }
+ return this->onCreateFromStream(stream, params);
+}
+
+SkTypeface* SkFontMgr::onCreateFromStream(SkStreamAsset* stream, const SkFontParameters& params) const {
bungeman-skia 2015/03/23 21:59:05 These are just the base 'default' shims to keep ex
+ return this->onCreateFromStream(stream, params.fIndex);
+}
+
SkTypeface* SkFontMgr::createFromFile(const char path[], int ttcIndex) const {
if (NULL == path) {
return NULL;

Powered by Google App Engine
This is Rietveld 408576698