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

Unified Diff: include/core/SkTypeface.h

Issue 796523002: Force embedding full font when serializing pictures. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Whitelist Linux instead. Created 6 years 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
« no previous file with comments | « no previous file | src/core/SkPictureData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTypeface.h
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index c3ff3641b71b4a49561dee69861361ed54d1eca4..c2aa543ab2748003f018e7f5fe4ea5019da44b38 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -137,6 +137,10 @@ public:
*/
void serialize(SkWStream*) const;
+ /** Like serialize, but write the whole font (not just a signature) if possible.
+ */
+ void serializeForcingEmbedding(SkWStream*) const;
+
/** Given the data previously written by serialize(), return a new instance
to a typeface referring to the same font. If that font is not available,
return null. If an instance is returned, the caller is responsible for
« no previous file with comments | « no previous file | src/core/SkPictureData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698