ddraw: Register / unregister the ddraw window class from DllMain().
[wine/testsucceed.git] / dlls / usp10 / usp10_internal.h
blob56226eec5f0eff0498fcc02cc83495c202725c7d
1 /*
2 * Implementation of Uniscribe Script Processor (usp10.dll)
4 * Copyright 2010 CodeWeavers, Aric Stewart
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #define Script_Syriac 8
23 #define Script_Hebrew 7
24 #define Script_Arabic 6
25 #define Script_Latin 1
26 #define Script_Numeric 5
27 #define Script_CR 22
28 #define Script_LF 23
30 #define GLYPH_BLOCK_SHIFT 8
31 #define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
32 #define GLYPH_BLOCK_MASK (GLYPH_BLOCK_SIZE - 1)
33 #define GLYPH_MAX 65536
35 typedef struct {
36 LOGFONTW lf;
37 TEXTMETRICW tm;
38 WORD *glyphs[GLYPH_MAX / GLYPH_BLOCK_SIZE];
39 ABC *widths[GLYPH_MAX / GLYPH_BLOCK_SIZE];
40 LPVOID *GSUB_Table;
41 } ScriptCache;
43 #define odd(x) ((x) & 1)
45 BOOL BIDI_DetermineLevels( LPCWSTR lpString, INT uCount, const SCRIPT_STATE *s,
46 const SCRIPT_CONTROL *c, WORD *lpOutLevels );
48 INT BIDI_ReorderV2lLevel(int level, int *pIndexs, const BYTE* plevel, int cch, BOOL fReverse);
49 INT BIDI_ReorderL2vLevel(int level, int *pIndexs, const BYTE* plevel, int cch, BOOL fReverse);
50 void SHAPE_ShapeArabicGlyphs(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, WCHAR* pwcChars, INT cChars, WORD* pwOutGlyphs, INT* pcGlyphs, INT cMaxGlyphs);