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