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