| 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_SRC_FGAS_INCLUDE_FX_UCD_H_ | 7 #ifndef XFA_SRC_FGAS_INCLUDE_FX_UCD_H_ |
| 8 #define XFA_SRC_FGAS_INCLUDE_FX_UCD_H_ | 8 #define XFA_SRC_FGAS_INCLUDE_FX_UCD_H_ |
| 9 | 9 |
| 10 #include "xfa/src/fgas/include/fx_fnt.h" |
| 11 |
| 10 #define FX_JAPCHARPROPERTYEX_Left 0x01 | 12 #define FX_JAPCHARPROPERTYEX_Left 0x01 |
| 11 #define FX_JAPCHARPROPERTYEX_Center 0x02 | 13 #define FX_JAPCHARPROPERTYEX_Center 0x02 |
| 12 #define FX_JAPCHARPROPERTYEX_Right 0x03 | 14 #define FX_JAPCHARPROPERTYEX_Right 0x03 |
| 13 #define FX_JAPCHARPROPERTYEX_Top 0x10 | 15 #define FX_JAPCHARPROPERTYEX_Top 0x10 |
| 14 #define FX_JAPCHARPROPERTYEX_Middle 0x20 | 16 #define FX_JAPCHARPROPERTYEX_Middle 0x20 |
| 15 #define FX_JAPCHARPROPERTYEX_Bottom 0x30 | 17 #define FX_JAPCHARPROPERTYEX_Bottom 0x30 |
| 16 | 18 |
| 17 struct FX_JAPCHARPROPERTYEX { | 19 struct FX_JAPCHARPROPERTYEX { |
| 18 FX_WCHAR wChar; | 20 FX_WCHAR wChar; |
| 19 uint8_t uAlign; | 21 uint8_t uAlign; |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 const FX_JAPCHARPROPERTYEX* FX_GetJapCharPropertyEx(FX_WCHAR wch); | 24 const FX_JAPCHARPROPERTYEX* FX_GetJapCharPropertyEx(FX_WCHAR wch); |
| 23 typedef FX_BOOL (*FX_AdjustCharDisplayPos)(FX_WCHAR wch, | 25 typedef FX_BOOL (*FX_AdjustCharDisplayPos)(FX_WCHAR wch, |
| 24 FX_BOOL bMBCSCode, | 26 FX_BOOL bMBCSCode, |
| 25 IFX_Font* pFont, | 27 IFX_Font* pFont, |
| 26 FX_FLOAT fFontSize, | 28 FX_FLOAT fFontSize, |
| 27 FX_BOOL bVertical, | 29 FX_BOOL bVertical, |
| 28 CFX_PointF& ptOffset); | 30 CFX_PointF& ptOffset); |
| 29 FX_BOOL FX_AdjustJapCharDisplayPos(FX_WCHAR wch, | 31 FX_BOOL FX_AdjustJapCharDisplayPos(FX_WCHAR wch, |
| 30 FX_BOOL bMBCSCode, | 32 FX_BOOL bMBCSCode, |
| 31 IFX_Font* pFont, | 33 IFX_Font* pFont, |
| 32 FX_FLOAT fFontSize, | 34 FX_FLOAT fFontSize, |
| 33 FX_BOOL bVertical, | 35 FX_BOOL bVertical, |
| 34 CFX_PointF& ptOffset); | 36 CFX_PointF& ptOffset); |
| 35 | 37 |
| 36 #endif // XFA_SRC_FGAS_INCLUDE_FX_UCD_H_ | 38 #endif // XFA_SRC_FGAS_INCLUDE_FX_UCD_H_ |
| OLD | NEW |