• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CHARPOSLIST_H_
8 #define CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_
9 
10 #include <vector>
11 
12 #include "core/fxcrt/fx_system.h"
13 #include "core/fxge/cfx_renderdevice.h"
14 
15 class CPDF_Font;
16 
17 class CPDF_CharPosList {
18  public:
19   CPDF_CharPosList();
20   ~CPDF_CharPosList();
21   void Load(const std::vector<uint32_t>& charCodes,
22             const std::vector<FX_FLOAT>& charPos,
23             CPDF_Font* pFont,
24             FX_FLOAT font_size);
25   FXTEXT_CHARPOS* m_pCharPos;
26   uint32_t m_nChars;
27 };
28 
29 #endif  // CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_
30