OLD | NEW |
(Empty) | |
| 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_FPDFDOC_CPVT_PROVIDER_H_ |
| 8 #define CORE_FPDFDOC_CPVT_PROVIDER_H_ |
| 9 |
| 10 #include "core/fpdfdoc/include/ipdf_variabletext_provider.h" |
| 11 #include "core/fpdfdoc/ipvt_fontmap.h" |
| 12 #include "core/fxcrt/include/fx_system.h" |
| 13 |
| 14 class CPVT_Provider : public IPDF_VariableText_Provider { |
| 15 public: |
| 16 CPVT_Provider(IPVT_FontMap* pFontMap); |
| 17 ~CPVT_Provider() override; |
| 18 |
| 19 // IPDF_VariableText_Provider |
| 20 int32_t GetCharWidth(int32_t nFontIndex, |
| 21 uint16_t word, |
| 22 int32_t nWordStyle) override; |
| 23 int32_t GetTypeAscent(int32_t nFontIndex) override; |
| 24 int32_t GetTypeDescent(int32_t nFontIndex) override; |
| 25 int32_t GetWordFontIndex(uint16_t word, |
| 26 int32_t charset, |
| 27 int32_t nFontIndex) override; |
| 28 FX_BOOL IsLatinWord(uint16_t word) override; |
| 29 int32_t GetDefaultFontIndex() override; |
| 30 |
| 31 private: |
| 32 IPVT_FontMap* m_pFontMap; |
| 33 }; |
| 34 |
| 35 #endif // CORE_FPDFDOC_CPVT_PROVIDER_H_ |
OLD | NEW |