| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ | 7 #ifndef XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ |
| 8 #define XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ | 8 #define XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ |
| 9 | 9 |
| 10 #include "xfa/fgas/crt/fgas_utils.h" | 10 #include "xfa/fgas/crt/fgas_utils.h" |
| 11 #include "xfa/fgas/font/fgas_font.h" | 11 #include "xfa/fgas/font/cfgas_fontmgr.h" |
| 12 | 12 |
| 13 struct FX_TPO { | 13 struct FX_TPO { |
| 14 int32_t index; | 14 int32_t index; |
| 15 int32_t pos; | 15 int32_t pos; |
| 16 }; | 16 }; |
| 17 typedef CFX_MassArrayTemplate<FX_TPO> CFX_TPOArray; | 17 typedef CFX_MassArrayTemplate<FX_TPO> CFX_TPOArray; |
| 18 | 18 |
| 19 void FX_TEXTLAYOUT_PieceSort(CFX_TPOArray& tpos, int32_t iStart, int32_t iEnd); | 19 void FX_TEXTLAYOUT_PieceSort(CFX_TPOArray& tpos, int32_t iStart, int32_t iEnd); |
| 20 | 20 |
| 21 typedef bool (*FX_AdjustCharDisplayPos)(FX_WCHAR wch, | 21 typedef bool (*FX_AdjustCharDisplayPos)(FX_WCHAR wch, |
| 22 bool bMBCSCode, | 22 bool bMBCSCode, |
| 23 CFGAS_GEFont* pFont, | 23 CFGAS_GEFont* pFont, |
| 24 FX_FLOAT fFontSize, | 24 FX_FLOAT fFontSize, |
| 25 bool bVertical, | 25 bool bVertical, |
| 26 CFX_PointF& ptOffset); | 26 CFX_PointF& ptOffset); |
| 27 | 27 |
| 28 #endif // XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ | 28 #endif // XFA_FGAS_LAYOUT_FGAS_UNICODE_H_ |
| OLD | NEW |