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 { | |
Tom Sepez
2016/03/30 17:19:52
this all could go in ipdf_variabletext.h if it wer
dsinclair
2016/03/30 18:41:20
Acknowledged.
| |
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 | |
Tom Sepez
2016/03/30 17:19:52
nit: no blank line here.
dsinclair
2016/03/30 18:41:20
Done.
| |
26 virtual FX_BOOL IsLatinWord(uint16_t word) = 0; | |
27 }; | |
28 | |
29 #endif // CORE_FPDFDOC_INCLUDE_IPDF_VARIABLETEXT_PROVIDER_H_ | |
OLD | NEW |