Index: tools/using_skia_and_harfbuzz.cpp |
diff --git a/tools/using_skia_and_harfbuzz.cpp b/tools/using_skia_and_harfbuzz.cpp |
index 8ed213c46c91a42507190aacf15e54f81e2c4f18..413939d15b7f35ab89d65cfd0ec817c1bacffc72 100644 |
--- a/tools/using_skia_and_harfbuzz.cpp |
+++ b/tools/using_skia_and_harfbuzz.cpp |
@@ -5,24 +5,21 @@ |
* found in the LICENSE file. |
*/ |
-#include "SkCanvas.h" |
-#include "SkDocument.h" |
-#include "SkFontMgr.h" |
-#include "SkGradientShader.h" |
-#include "SkPaint.h" |
-#include "SkStream.h" |
-#include "SkString.h" |
-#include "SkTextBlob.h" |
-#include "SkTypeface.h" |
- |
-#include <hb.h> |
-#include <hb-ot.h> |
+// This sample progam demonstrates how to use Skia and HarfBuzz to |
+// produce a PDF file from UTF-8 text in stdin. |
#include <cassert> |
#include <iostream> |
#include <map> |
#include <string> |
+#include <hb-ot.h> |
+ |
+#include "SkCanvas.h" |
+#include "SkDocument.h" |
+#include "SkStream.h" |
+#include "SkTextBlob.h" |
+#include "SkTypeface.h" |
struct BaseOption { |
std::string selector; |
@@ -207,7 +204,6 @@ class Placement { |
SkPaint::kSubpixelText_Flag); // ... avoid waggly text when rotating. |
glyph_paint.setColor(SK_ColorBLACK); |
glyph_paint.setTextSize(config.font_size->value); |
- SkAutoTUnref<SkFontMgr> fm(SkFontMgr::RefDefault()); |
glyph_paint.setTypeface(face->fSkiaTypeface); |
glyph_paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); |