• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 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 XFA_FGAS_LAYOUT_CFX_TEXTPIECE_H_
8 #define XFA_FGAS_LAYOUT_CFX_TEXTPIECE_H_
9 
10 #include <vector>
11 
12 #include "core/fxcrt/fx_coordinates.h"
13 #include "core/fxcrt/fx_string.h"
14 #include "core/fxcrt/retain_ptr.h"
15 
16 class CFGAS_GEFont;
17 
18 class CFX_TextPiece {
19  public:
20   CFX_TextPiece();
21   ~CFX_TextPiece();
22 
23   WideString szText;
24   std::vector<int32_t> Widths;
25   int32_t iChars;
26   int32_t iHorScale;
27   int32_t iVerScale;
28   int32_t iBidiLevel;
29   float fFontSize;
30   CFX_RectF rtPiece;
31   RetainPtr<CFGAS_GEFont> pFont;
32 };
33 
34 #endif  // XFA_FGAS_LAYOUT_CFX_TEXTPIECE_H_
35