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

Unified Diff: src/pdf/SkPDFFontImpl.h

Issue 2221163002: SkPDF: SkPDFFont organization changes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-08-09 (Tuesday) 15:24:15 EDT Created 4 years, 4 months 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 | « src/pdf/SkPDFFont.cpp ('k') | src/pdf/SkPDFMakeToUnicodeCmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFFontImpl.h
diff --git a/src/pdf/SkPDFFontImpl.h b/src/pdf/SkPDFFontImpl.h
deleted file mode 100644
index 05774de6b39a7b2e01e3ba7fecb549de00425abe..0000000000000000000000000000000000000000
--- a/src/pdf/SkPDFFontImpl.h
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-
-#ifndef SkPDFFontImpl_DEFINED
-#define SkPDFFontImpl_DEFINED
-
-#include "SkPDFFont.h"
-
-class SkPDFType0Font final : public SkPDFFont {
-public:
- virtual ~SkPDFType0Font();
- bool multiByteGlyphs() const override { return true; }
- SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage) override;
-#ifdef SK_DEBUG
- void emitObject(SkWStream*,
- const SkPDFObjNumMap&,
- const SkPDFSubstituteMap&) const override;
-#endif
-
-private:
- friend class SkPDFFont; // to access the constructor
-#ifdef SK_DEBUG
- bool fPopulated;
- typedef SkPDFDict INHERITED;
-#endif
-
- SkPDFType0Font(const SkAdvancedTypefaceMetrics* info,
- SkTypeface* typeface);
-
- bool populate(const SkPDFGlyphSet* subset);
-};
-
-class SkPDFCIDFont final : public SkPDFFont {
-public:
- virtual ~SkPDFCIDFont();
- virtual bool multiByteGlyphs() const { return true; }
-
-private:
- friend class SkPDFType0Font; // to access the constructor
-
- SkPDFCIDFont(const SkAdvancedTypefaceMetrics* info,
- SkTypeface* typeface,
- const SkPDFGlyphSet* subset);
-
- bool populate(const SkPDFGlyphSet* subset);
- bool addFontDescriptor(int16_t defaultWidth,
- const SkTDArray<uint32_t>* subset);
-};
-
-struct AdvanceMetric;
-
-class SkPDFType1Font final : public SkPDFFont {
-public:
- virtual ~SkPDFType1Font();
- virtual bool multiByteGlyphs() const { return false; }
-
-private:
- friend class SkPDFFont; // to access the constructor
-
- SkPDFType1Font(const SkAdvancedTypefaceMetrics* info,
- SkTypeface* typeface,
- uint16_t glyphID,
- SkPDFDict* relatedFontDescriptor);
-
- bool populate(int16_t glyphID);
- bool addFontDescriptor(int16_t defaultWidth);
- void addWidthInfoFromRange(int16_t defaultWidth,
- const AdvanceMetric* widthRangeEntry);
-};
-
-class SkPDFType3Font final : public SkPDFFont {
-public:
- virtual ~SkPDFType3Font();
- virtual bool multiByteGlyphs() const { return false; }
-
-private:
- friend class SkPDFFont; // to access the constructor
-
- SkPDFType3Font(const SkAdvancedTypefaceMetrics* info,
- SkTypeface* typeface,
- uint16_t glyphID);
-
- bool populate(uint16_t glyphID);
-};
-
-#endif
« no previous file with comments | « src/pdf/SkPDFFont.cpp ('k') | src/pdf/SkPDFMakeToUnicodeCmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698