diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-04 12:18:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-04 12:18:35 -0700 |
commit | 69d9c68e705afa7a4008feb9bbeb19cea887ed47 (patch) | |
tree | b5509c51aeeb89c99c7a4e0a60f8e5f29af5245c /core/fpdfapi/render/cpdf_type3glyphs.h | |
parent | 488b7ad845d6de212d89cd957303b294ecfa5922 (diff) | |
download | pdfium-69d9c68e705afa7a4008feb9bbeb19cea887ed47.tar.xz |
Move core/fpdfapi/fpdf_render to core/fpdfapi/render
BUG=pdfium:603
Review-Url: https://codereview.chromium.org/2393593002
Diffstat (limited to 'core/fpdfapi/render/cpdf_type3glyphs.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_type3glyphs.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/core/fpdfapi/render/cpdf_type3glyphs.h b/core/fpdfapi/render/cpdf_type3glyphs.h new file mode 100644 index 0000000000..00814d5b3b --- /dev/null +++ b/core/fpdfapi/render/cpdf_type3glyphs.h @@ -0,0 +1,35 @@ +// 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_RENDER_CPDF_TYPE3GLYPHS_H_ +#define CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ + +#include <map> + +#include "core/fxcrt/fx_system.h" + +class CFX_GlyphBitmap; + +#define TYPE3_MAX_BLUES 16 + +class CPDF_Type3Glyphs { + public: + CPDF_Type3Glyphs(); + ~CPDF_Type3Glyphs(); + + void AdjustBlue(FX_FLOAT top, + FX_FLOAT bottom, + int& top_line, + int& bottom_line); + + std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap; + int m_TopBlue[TYPE3_MAX_BLUES]; + int m_BottomBlue[TYPE3_MAX_BLUES]; + int m_TopBlueCount; + int m_BottomBlueCount; +}; + +#endif // CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ |