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 _FGAS_UNICODE_
8 #define _FGAS_UNICODE_
9 #define FX_JAPCHARPROPERTYEX_Left 0x01
10 #define FX_JAPCHARPROPERTYEX_Center 0x02
11 #define FX_JAPCHARPROPERTYEX_Right 0x03
12 #define FX_JAPCHARPROPERTYEX_Top 0x10
13 #define FX_JAPCHARPROPERTYEX_Middle 0x20
14 #define FX_JAPCHARPROPERTYEX_Bottom 0x30
15 typedef struct _FX_JAPCHARPROPERTYEX {
16   FX_WCHAR wChar;
17   uint8_t uAlign;
18 } FX_JAPCHARPROPERTYEX, *FX_LPJAPCHARPROPERTYEX;
19 typedef FX_JAPCHARPROPERTYEX const* FX_LPCJAPCHARPROPERTYEX;
20 FX_LPCJAPCHARPROPERTYEX FX_GetJapCharPropertyEx(FX_WCHAR wch);
21 typedef FX_BOOL (*FX_AdjustCharDisplayPos)(FX_WCHAR wch,
22                                            FX_BOOL bMBCSCode,
23                                            IFX_Font* pFont,
24                                            FX_FLOAT fFontSize,
25                                            FX_BOOL bVertical,
26                                            CFX_PointF& ptOffset);
27 FX_BOOL FX_AdjustJapCharDisplayPos(FX_WCHAR wch,
28                                    FX_BOOL bMBCSCode,
29                                    IFX_Font* pFont,
30                                    FX_FLOAT fFontSize,
31                                    FX_BOOL bVertical,
32                                    CFX_PointF& ptOffset);
33 #endif
34