1 // Copyright 2014 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_FGAS_UNICODE_H_ 8 #define XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ 9 10 #include "xfa/fgas/crt/fgas_utils.h" 11 #include "xfa/fgas/font/fgas_font.h" 12 13 struct FX_TPO { 14 int32_t index; 15 int32_t pos; 16 }; 17 typedef CFX_MassArrayTemplate<FX_TPO> CFX_TPOArray; 18 19 void FX_TEXTLAYOUT_PieceSort(CFX_TPOArray& tpos, int32_t iStart, int32_t iEnd); 20 21 typedef FX_BOOL (*FX_AdjustCharDisplayPos)(FX_WCHAR wch, 22 FX_BOOL bMBCSCode, 23 CFGAS_GEFont* pFont, 24 FX_FLOAT fFontSize, 25 FX_BOOL bVertical, 26 CFX_PointF& ptOffset); 27 28 #endif // XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ 29