• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The PDFium Authors
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_WORD_H_
8 #define CORE_FPDFDOC_CPVT_WORD_H_
9 
10 #include <stdint.h>
11 
12 #include "core/fpdfdoc/cpvt_wordplace.h"
13 #include "core/fxcrt/fx_codepage.h"
14 
15 class CPVT_Word {
16  public:
17   CPVT_Word();
18 
19   uint16_t Word;
20   FX_Charset nCharset;
21   CPVT_WordPlace WordPlace;
22   CFX_PointF ptWord;
23   float fAscent;
24   float fDescent;
25   float fWidth;
26   int32_t nFontIndex;
27   float fFontSize;
28 };
29 
CPVT_Word()30 inline CPVT_Word::CPVT_Word()
31     : Word(0),
32       nCharset(FX_Charset::kANSI),
33       fAscent(0.0f),
34       fDescent(0.0f),
35       fWidth(0.0f),
36       nFontIndex(-1),
37       fFontSize(0.0f) {}
38 
39 #endif  // CORE_FPDFDOC_CPVT_WORD_H_
40