aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-01 14:21:20 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-01 14:21:20 +0000
commit7103344b64f3f0df88e76857c16edc8eedb58366 (patch)
tree187c7d75cf31251d763ff94b5506028c2250c227 /gm
parenta0eca26ac0b051cf88ae831b38464ba2466fac54 (diff)
Add FontMgr to DirectWrite.
Diffstat (limited to 'gm')
-rw-r--r--gm/fontmgr.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gm/fontmgr.cpp b/gm/fontmgr.cpp
index 4ff55a7a6c..70b91150d0 100644
--- a/gm/fontmgr.cpp
+++ b/gm/fontmgr.cpp
@@ -71,7 +71,11 @@ protected:
virtual uint32_t onGetFlags() const SK_OVERRIDE {
// fontdescriptors (and therefore serialization) don't yet understand
// these new styles, so skip tests that exercise that for now.
- return kSkipPicture_Flag | kSkipPipe_Flag;
+
+ // If certain fonts are picked up (e.g. Microsoft Jhenghei 20MB for Regular, 12MB for Bold),
+ // the resulting pdf can be ~700MB and crashes Chrome's PDF viewer.
+
+ return kSkipPicture_Flag | kSkipPipe_Flag | kSkipPDF_Flag;
}
private: