2
|
1 |
/*
|
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
3 |
*
|
|
4 |
* This code is free software; you can redistribute it and/or modify it
|
|
5 |
* under the terms of the GNU General Public License version 2 only, as
|
|
6 |
* published by the Free Software Foundation. Sun designates this
|
|
7 |
* particular file as subject to the "Classpath" exception as provided
|
|
8 |
* by Sun in the LICENSE file that accompanied this code.
|
|
9 |
*
|
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
14 |
* accompanied this code).
|
|
15 |
*
|
|
16 |
* You should have received a copy of the GNU General Public License version
|
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
19 |
*
|
|
20 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
21 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
22 |
* have any questions.
|
|
23 |
*
|
|
24 |
*/
|
|
25 |
|
|
26 |
/*
|
|
27 |
*
|
|
28 |
* (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
|
|
29 |
*
|
|
30 |
*/
|
|
31 |
|
|
32 |
#ifndef __GLYPHDEFINITIONTABLES_H
|
|
33 |
#define __GLYPHDEFINITIONTABLES_H
|
|
34 |
|
|
35 |
#include "LETypes.h"
|
|
36 |
#include "OpenTypeTables.h"
|
|
37 |
#include "ClassDefinitionTables.h"
|
|
38 |
|
|
39 |
typedef ClassDefinitionTable GlyphClassDefinitionTable;
|
|
40 |
|
|
41 |
enum GlyphClassDefinitions
|
|
42 |
{
|
|
43 |
gcdNoGlyphClass = 0,
|
|
44 |
gcdSimpleGlyph = 1,
|
|
45 |
gcdLigatureGlyph = 2,
|
|
46 |
gcdMarkGlyph = 3,
|
|
47 |
gcdComponentGlyph = 4
|
|
48 |
};
|
|
49 |
|
|
50 |
struct AttachmentListTable
|
|
51 |
{
|
|
52 |
Offset coverageTableOffset;
|
|
53 |
le_uint16 glyphCount;
|
|
54 |
Offset attachPointTableOffsetArray[ANY_NUMBER];
|
|
55 |
};
|
|
56 |
|
|
57 |
struct AttachPointTable
|
|
58 |
{
|
|
59 |
le_uint16 pointCount;
|
|
60 |
le_uint16 pointIndexArray[ANY_NUMBER];
|
|
61 |
};
|
|
62 |
|
|
63 |
struct LigatureCaretListTable
|
|
64 |
{
|
|
65 |
Offset coverageTableOffset;
|
|
66 |
le_uint16 ligGlyphCount;
|
|
67 |
Offset ligGlyphTableOffsetArray[ANY_NUMBER];
|
|
68 |
};
|
|
69 |
|
|
70 |
struct LigatureGlyphTable
|
|
71 |
{
|
|
72 |
le_uint16 caretCount;
|
|
73 |
Offset caretValueTableOffsetArray[ANY_NUMBER];
|
|
74 |
};
|
|
75 |
|
|
76 |
struct CaretValueTable
|
|
77 |
{
|
|
78 |
le_uint16 caretValueFormat;
|
|
79 |
};
|
|
80 |
|
|
81 |
struct CaretValueFormat1Table : CaretValueTable
|
|
82 |
{
|
|
83 |
le_int16 coordinate;
|
|
84 |
};
|
|
85 |
|
|
86 |
struct CaretValueFormat2Table : CaretValueTable
|
|
87 |
{
|
|
88 |
le_uint16 caretValuePoint;
|
|
89 |
};
|
|
90 |
|
|
91 |
struct CaretValueFormat3Table : CaretValueTable
|
|
92 |
{
|
|
93 |
le_int16 coordinate;
|
|
94 |
Offset deviceTableOffset;
|
|
95 |
};
|
|
96 |
|
|
97 |
typedef ClassDefinitionTable MarkAttachClassDefinitionTable;
|
|
98 |
|
|
99 |
struct GlyphDefinitionTableHeader
|
|
100 |
{
|
|
101 |
fixed32 version;
|
|
102 |
Offset glyphClassDefOffset;
|
|
103 |
Offset attachListOffset;
|
|
104 |
Offset ligCaretListOffset;
|
|
105 |
Offset MarkAttachClassDefOffset;
|
|
106 |
|
|
107 |
const GlyphClassDefinitionTable *getGlyphClassDefinitionTable() const;
|
|
108 |
const AttachmentListTable *getAttachmentListTable()const ;
|
|
109 |
const LigatureCaretListTable *getLigatureCaretListTable() const;
|
|
110 |
const MarkAttachClassDefinitionTable *getMarkAttachClassDefinitionTable() const;
|
|
111 |
};
|
|
112 |
|
|
113 |
#endif
|