0N/A/*
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A *
0N/A */
0N/A
0N/A/*
0N/A *
0N/A * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
0N/A *
0N/A */
0N/A
0N/A#ifndef __GLYPHDEFINITIONTABLES_H
0N/A#define __GLYPHDEFINITIONTABLES_H
0N/A
1693N/A/**
1693N/A * \file
1693N/A * \internal
1693N/A */
1693N/A
0N/A#include "LETypes.h"
0N/A#include "OpenTypeTables.h"
0N/A#include "ClassDefinitionTables.h"
0N/A
1693N/AU_NAMESPACE_BEGIN
1693N/A
0N/Atypedef ClassDefinitionTable GlyphClassDefinitionTable;
0N/A
0N/Aenum GlyphClassDefinitions
0N/A{
0N/A gcdNoGlyphClass = 0,
0N/A gcdSimpleGlyph = 1,
0N/A gcdLigatureGlyph = 2,
0N/A gcdMarkGlyph = 3,
0N/A gcdComponentGlyph = 4
0N/A};
0N/A
0N/Astruct AttachmentListTable
0N/A{
0N/A Offset coverageTableOffset;
0N/A le_uint16 glyphCount;
0N/A Offset attachPointTableOffsetArray[ANY_NUMBER];
0N/A};
5980N/ALE_VAR_ARRAY(AttachmentListTable, attachPointTableOffsetArray)
0N/A
0N/Astruct AttachPointTable
0N/A{
0N/A le_uint16 pointCount;
0N/A le_uint16 pointIndexArray[ANY_NUMBER];
0N/A};
5980N/ALE_VAR_ARRAY(AttachPointTable, pointIndexArray)
0N/A
0N/Astruct LigatureCaretListTable
0N/A{
0N/A Offset coverageTableOffset;
0N/A le_uint16 ligGlyphCount;
0N/A Offset ligGlyphTableOffsetArray[ANY_NUMBER];
0N/A};
5980N/ALE_VAR_ARRAY(LigatureCaretListTable, ligGlyphTableOffsetArray)
0N/A
0N/Astruct LigatureGlyphTable
0N/A{
0N/A le_uint16 caretCount;
0N/A Offset caretValueTableOffsetArray[ANY_NUMBER];
0N/A};
5980N/ALE_VAR_ARRAY(LigatureGlyphTable, caretValueTableOffsetArray)
0N/A
0N/Astruct CaretValueTable
0N/A{
0N/A le_uint16 caretValueFormat;
0N/A};
0N/A
0N/Astruct CaretValueFormat1Table : CaretValueTable
0N/A{
0N/A le_int16 coordinate;
0N/A};
0N/A
0N/Astruct CaretValueFormat2Table : CaretValueTable
0N/A{
0N/A le_uint16 caretValuePoint;
0N/A};
0N/A
0N/Astruct CaretValueFormat3Table : CaretValueTable
0N/A{
0N/A le_int16 coordinate;
0N/A Offset deviceTableOffset;
0N/A};
0N/A
0N/Atypedef ClassDefinitionTable MarkAttachClassDefinitionTable;
0N/A
0N/Astruct GlyphDefinitionTableHeader
0N/A{
0N/A fixed32 version;
0N/A Offset glyphClassDefOffset;
0N/A Offset attachListOffset;
0N/A Offset ligCaretListOffset;
0N/A Offset MarkAttachClassDefOffset;
0N/A
5980N/A const LEReferenceTo<GlyphClassDefinitionTable>
5980N/A getGlyphClassDefinitionTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
5980N/A LEErrorCode &success) const;
5980N/A const LEReferenceTo<AttachmentListTable>
5980N/A getAttachmentListTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
5980N/A LEErrorCode &success)const ;
5980N/A const LEReferenceTo<LigatureCaretListTable>
5980N/A getLigatureCaretListTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
5980N/A LEErrorCode &success) const;
5980N/A const LEReferenceTo<MarkAttachClassDefinitionTable>
5980N/A getMarkAttachClassDefinitionTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
5980N/A LEErrorCode &success) const;
0N/A};
0N/A
1693N/AU_NAMESPACE_END
0N/A#endif