diff options
Diffstat (limited to 'core/fpdfapi/render/cpdf_type3glyphs.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_type3glyphs.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/fpdfapi/render/cpdf_type3glyphs.h b/core/fpdfapi/render/cpdf_type3glyphs.h index 7756be309f..09dd70a564 100644 --- a/core/fpdfapi/render/cpdf_type3glyphs.h +++ b/core/fpdfapi/render/cpdf_type3glyphs.h @@ -9,25 +9,26 @@ #include <map> #include <memory> +#include <utility> +#include <vector> #include "core/fxcrt/fx_system.h" class CFX_GlyphBitmap; -#define TYPE3_MAX_BLUES 16 - class CPDF_Type3Glyphs { public: CPDF_Type3Glyphs(); ~CPDF_Type3Glyphs(); - void AdjustBlue(float top, float bottom, int& top_line, int& bottom_line); + // Returns a pair of integers (top_line, bottom_line). + std::pair<int, int> AdjustBlue(float top, float bottom); std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>> m_GlyphMap; - int m_TopBlueCount; - int m_BottomBlueCount; - int m_TopBlue[TYPE3_MAX_BLUES]; - int m_BottomBlue[TYPE3_MAX_BLUES]; + + private: + std::vector<int> m_TopBlue; + std::vector<int> m_BottomBlue; }; #endif // CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ |