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_INCLUDE_IPDF_VARIABLETEXT_PROVIDER_H_ |
| 8 #define CORE_FPDFDOC_INCLUDE_IPDF_VARIABLETEXT_PROVIDER_H_ |
| 9 |
| 10 #include "core/fxcrt/include/fx_system.h" |
| 11 |
| 12 class IPDF_VariableText_Provider { |
| 13 public: |
| 14 virtual ~IPDF_VariableText_Provider(); |
| 15 |
| 16 virtual int32_t GetCharWidth(int32_t nFontIndex, |
| 17 uint16_t word, |
| 18 int32_t nWordStyle) = 0; |
| 19 virtual int32_t GetTypeAscent(int32_t nFontIndex) = 0; |
| 20 virtual int32_t GetTypeDescent(int32_t nFontIndex) = 0; |
| 21 virtual int32_t GetWordFontIndex(uint16_t word, |
| 22 int32_t charset, |
| 23 int32_t nFontIndex) = 0; |
| 24 virtual int32_t GetDefaultFontIndex() = 0; |
| 25 virtual FX_BOOL IsLatinWord(uint16_t word) = 0; |
| 26 }; |
| 27 |
| 28 #endif // CORE_FPDFDOC_INCLUDE_IPDF_VARIABLETEXT_PROVIDER_H_ |
OLD | NEW |