OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FPDFAPI_FPDF_RENDER_CPDF_TYPE3GLYPHS_H_ | 7 #ifndef CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ |
8 #define CORE_FPDFAPI_FPDF_RENDER_CPDF_TYPE3GLYPHS_H_ | 8 #define CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "core/fxcrt/fx_system.h" | 12 #include "core/fxcrt/fx_system.h" |
13 | 13 |
14 class CFX_GlyphBitmap; | 14 class CFX_GlyphBitmap; |
15 | 15 |
16 #define TYPE3_MAX_BLUES 16 | 16 #define TYPE3_MAX_BLUES 16 |
17 | 17 |
18 class CPDF_Type3Glyphs { | 18 class CPDF_Type3Glyphs { |
19 public: | 19 public: |
20 CPDF_Type3Glyphs(); | 20 CPDF_Type3Glyphs(); |
21 ~CPDF_Type3Glyphs(); | 21 ~CPDF_Type3Glyphs(); |
22 | 22 |
23 void AdjustBlue(FX_FLOAT top, | 23 void AdjustBlue(FX_FLOAT top, |
24 FX_FLOAT bottom, | 24 FX_FLOAT bottom, |
25 int& top_line, | 25 int& top_line, |
26 int& bottom_line); | 26 int& bottom_line); |
27 | 27 |
28 std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap; | 28 std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap; |
29 int m_TopBlue[TYPE3_MAX_BLUES]; | 29 int m_TopBlue[TYPE3_MAX_BLUES]; |
30 int m_BottomBlue[TYPE3_MAX_BLUES]; | 30 int m_BottomBlue[TYPE3_MAX_BLUES]; |
31 int m_TopBlueCount; | 31 int m_TopBlueCount; |
32 int m_BottomBlueCount; | 32 int m_BottomBlueCount; |
33 }; | 33 }; |
34 | 34 |
35 #endif // CORE_FPDFAPI_FPDF_RENDER_CPDF_TYPE3GLYPHS_H_ | 35 #endif // CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ |
OLD | NEW |