blob: 9e6e7270183a81fd7d47b1e86a1d52c7772a47d3 [file] [log] [blame]
// Copyright 2019 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef XFA_FGAS_LAYOUT_CFGAS_TEXTPIECE_H_
#define XFA_FGAS_LAYOUT_CFGAS_TEXTPIECE_H_
#include <vector>
#include "core/fxcrt/fx_coordinates.h"
#include "core/fxcrt/retain_ptr.h"
#include "core/fxcrt/widestring.h"
class CFGAS_GEFont;
class CFGAS_TextPiece {
public:
CFGAS_TextPiece();
~CFGAS_TextPiece();
WideString szText;
std::vector<int32_t> Widths;
int32_t iChars;
int32_t iHorScale;
int32_t iVerScale;
int32_t iBidiLevel;
float fFontSize;
CFX_RectF rtPiece;
RetainPtr<CFGAS_GEFont> pFont;
};
#endif // XFA_FGAS_LAYOUT_CFGAS_TEXTPIECE_H_