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

Unified Diff: core/fpdfapi/fpdf_font/cpdf_simplefont.h

Issue 2392773003: Move core/fpdfapi/fpdf_font to core/fpdfapi/font (Closed)
Patch Set: Created 4 years, 2 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 | « core/fpdfapi/fpdf_font/cpdf_fontencoding.cpp ('k') | core/fpdfapi/fpdf_font/cpdf_simplefont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_font/cpdf_simplefont.h
diff --git a/core/fpdfapi/fpdf_font/cpdf_simplefont.h b/core/fpdfapi/fpdf_font/cpdf_simplefont.h
deleted file mode 100644
index f286c1a22883e105277c18c8550b194cf9fda37a..0000000000000000000000000000000000000000
--- a/core/fpdfapi/fpdf_font/cpdf_simplefont.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef CORE_FPDFAPI_FPDF_FONT_CPDF_SIMPLEFONT_H_
-#define CORE_FPDFAPI_FPDF_FONT_CPDF_SIMPLEFONT_H_
-
-#include <vector>
-
-#include "core/fpdfapi/fpdf_font/cpdf_font.h"
-#include "core/fpdfapi/fpdf_font/cpdf_fontencoding.h"
-#include "core/fxcrt/fx_string.h"
-#include "core/fxcrt/fx_system.h"
-
-class CPDF_SimpleFont : public CPDF_Font {
- public:
- CPDF_SimpleFont();
- ~CPDF_SimpleFont() override;
-
- // CPDF_Font
- int GetCharWidthF(uint32_t charcode) override;
- FX_RECT GetCharBBox(uint32_t charcode) override;
- int GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) override;
- bool IsUnicodeCompatible() const override;
- CFX_WideString UnicodeFromCharCode(uint32_t charcode) const override;
- uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const override;
-
- CPDF_FontEncoding* GetEncoding() { return &m_Encoding; }
-
- protected:
- virtual void LoadGlyphMap() = 0;
-
- bool LoadCommon();
- void LoadSubstFont();
- void LoadCharMetrics(int charcode);
-
- CPDF_FontEncoding m_Encoding;
- uint16_t m_GlyphIndex[256];
- uint16_t m_ExtGID[256];
- std::vector<CFX_ByteString> m_CharNames;
- int m_BaseEncoding;
- uint16_t m_CharWidth[256];
- FX_RECT m_CharBBox[256];
- bool m_bUseFontWidth;
-};
-
-#endif // CORE_FPDFAPI_FPDF_FONT_CPDF_SIMPLEFONT_H_
« no previous file with comments | « core/fpdfapi/fpdf_font/cpdf_fontencoding.cpp ('k') | core/fpdfapi/fpdf_font/cpdf_simplefont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698