| OLD | NEW |
| (Empty) |
| 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_SRC_FGAS_LAYOUT_FGAS_UNICODE_H_ | |
| 8 #define XFA_SRC_FGAS_LAYOUT_FGAS_UNICODE_H_ | |
| 9 | |
| 10 #include "xfa/src/fgas/font/fgas_font.h" | |
| 11 #include "xfa/src/fgas/crt/fgas_utils.h" | |
| 12 | |
| 13 #define FX_JAPCHARPROPERTYEX_Left 0x01 | |
| 14 #define FX_JAPCHARPROPERTYEX_Center 0x02 | |
| 15 #define FX_JAPCHARPROPERTYEX_Right 0x03 | |
| 16 #define FX_JAPCHARPROPERTYEX_Top 0x10 | |
| 17 #define FX_JAPCHARPROPERTYEX_Middle 0x20 | |
| 18 #define FX_JAPCHARPROPERTYEX_Bottom 0x30 | |
| 19 | |
| 20 struct FX_TPO { | |
| 21 int32_t index; | |
| 22 int32_t pos; | |
| 23 }; | |
| 24 typedef CFX_MassArrayTemplate<FX_TPO> CFX_TPOArray; | |
| 25 | |
| 26 void FX_TEXTLAYOUT_PieceSort(CFX_TPOArray& tpos, int32_t iStart, int32_t iEnd); | |
| 27 | |
| 28 struct FX_JAPCHARPROPERTYEX { | |
| 29 FX_WCHAR wChar; | |
| 30 uint8_t uAlign; | |
| 31 }; | |
| 32 | |
| 33 const FX_JAPCHARPROPERTYEX* FX_GetJapCharPropertyEx(FX_WCHAR wch); | |
| 34 typedef FX_BOOL (*FX_AdjustCharDisplayPos)(FX_WCHAR wch, | |
| 35 FX_BOOL bMBCSCode, | |
| 36 IFX_Font* pFont, | |
| 37 FX_FLOAT fFontSize, | |
| 38 FX_BOOL bVertical, | |
| 39 CFX_PointF& ptOffset); | |
| 40 FX_BOOL FX_AdjustJapCharDisplayPos(FX_WCHAR wch, | |
| 41 FX_BOOL bMBCSCode, | |
| 42 IFX_Font* pFont, | |
| 43 FX_FLOAT fFontSize, | |
| 44 FX_BOOL bVertical, | |
| 45 CFX_PointF& ptOffset); | |
| 46 | |
| 47 #endif // XFA_SRC_FGAS_LAYOUT_FGAS_UNICODE_H_ | |
| OLD | NEW |