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_CPVT_WORD_H_ | |
8 #define CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ | |
9 | |
10 #include "core/fpdfdoc/include/cpvt_wordplace.h" | |
11 #include "core/fpdfdoc/include/cpvt_wordprops.h" | |
12 #include "core/fxcrt/include/fx_system.h" | |
13 | |
14 struct CPVT_Word { | |
15 CPVT_Word(); | |
16 | |
17 uint16_t Word; | |
18 int32_t nCharset; | |
19 CPVT_WordPlace WordPlace; | |
20 CFX_FloatPoint ptWord; | |
21 FX_FLOAT fAscent; | |
22 FX_FLOAT fDescent; | |
23 FX_FLOAT fWidth; | |
24 int32_t nFontIndex; | |
25 FX_FLOAT fFontSize; | |
26 CPVT_WordProps WordProps; | |
27 }; | |
28 | |
29 inline CPVT_Word::CPVT_Word() | |
30 : Word(0), | |
31 nCharset(0), | |
32 fAscent(0.0f), | |
33 fDescent(0.0f), | |
34 fWidth(0.0f), | |
35 nFontIndex(-1), | |
36 fFontSize(0.0f) {} | |
37 | |
38 #endif // CORE_FPDFDOC_INCLUDE_CPVT_WORD_H_ | |
OLD | NEW |