Index: src/core/SkPictureData.cpp |
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp |
index 2b2265403f0e6ed038448cb7d9422d032012f124..17566cbf258edfe1448548839f5b168972d98ad2 100644 |
--- a/src/core/SkPictureData.cpp |
+++ b/src/core/SkPictureData.cpp |
@@ -180,7 +180,12 @@ void SkPictureData::WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec) { |
rec.copyToArray((SkRefCnt**)array); |
for (int i = 0; i < count; i++) { |
+#ifdef SK_BUILD_FOR_UNIX |
+ array[i]->serializeForcingEmbedding(stream); |
+#else |
+ // FIXME: Macs and Windows don't draw pixel-perfect if we embed fonts in the SKP. |
array[i]->serialize(stream); |
+#endif |
} |
} |