aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fonts/create_test_font_color.cpp
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2018-03-23 14:39:42 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-23 14:39:51 +0000
commitaf78a942179143e4646871fc797e2ce17c23a594 (patch)
treee1df52c03c579436005b1098a500a3523c816000 /tools/fonts/create_test_font_color.cpp
parent8c53d465e3ceb3898f8037b61046c198bbec2fca (diff)
Revert "Add color fonts."
This reverts commit c912d6133c66df7cde3d64adc76941856a12da64. Reason for revert: Causing TSAN issues. Original change's description: > Add color fonts. > > BUG=skia:7624 > > Change-Id: Id2b7449048591892ff802484d5e3745a7e1402bb > Reviewed-on: https://skia-review.googlesource.com/109521 > Commit-Queue: Ben Wagner <bungeman@google.com> > Reviewed-by: Mike Klein <mtklein@google.com> > Reviewed-by: Herb Derby <herb@google.com> TBR=mtklein@google.com,bungeman@google.com,herb@google.com Change-Id: I2ccd1f00e91bb92b7059323c95da0dd3de954164 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia:7624 Reviewed-on: https://skia-review.googlesource.com/116141 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'tools/fonts/create_test_font_color.cpp')
-rw-r--r--tools/fonts/create_test_font_color.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/tools/fonts/create_test_font_color.cpp b/tools/fonts/create_test_font_color.cpp
deleted file mode 100644
index c3f2e08f3f..0000000000
--- a/tools/fonts/create_test_font_color.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-// running create_test_font_color generates ./<cbdt|sbix|cpal>.ttx
-// which are read by fonttools ttx to produce native fonts.
-
-#include "SkCommandLineFlags.h"
-#include "SkRefCnt.h"
-#include "SkStream.h"
-#include "SkTestSVGTypeface.h"
-
-int main(int argc, char** argv) {
- SkCommandLineFlags::Parse(argc, argv);
-
- sk_sp<SkTestSVGTypeface> typeface = SkTestSVGTypeface::Default();
-
- SkFILEWStream cbdt("cbdt.ttx");
- typeface->exportTtxCbdt(&cbdt);
- cbdt.flush();
- cbdt.fsync();
-
- SkFILEWStream sbix("sbix.ttx");
- typeface->exportTtxSbix(&sbix);
- sbix.flush();
- sbix.fsync();
-
- SkFILEWStream colr("colr.ttx");
- typeface->exportTtxColr(&colr);
- colr.flush();
- colr.fsync();
-
- return 0;
-}