os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphDefinitionTables.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphDefinitionTables.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,96 @@
     1.4 +/*
     1.5 + *
     1.6 + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
     1.7 + *
     1.8 + */
     1.9 +
    1.10 +#ifndef __GLYPHDEFINITIONTABLES_H
    1.11 +#define __GLYPHDEFINITIONTABLES_H
    1.12 +
    1.13 +/**
    1.14 + * \file
    1.15 + * \internal
    1.16 + */
    1.17 +
    1.18 +#include "LETypes.h"
    1.19 +#include "OpenTypeTables.h"
    1.20 +#include "ClassDefinitionTables.h"
    1.21 +
    1.22 +U_NAMESPACE_BEGIN
    1.23 +
    1.24 +typedef ClassDefinitionTable GlyphClassDefinitionTable;
    1.25 +
    1.26 +enum GlyphClassDefinitions
    1.27 +{
    1.28 +    gcdNoGlyphClass     = 0,
    1.29 +    gcdSimpleGlyph      = 1,
    1.30 +    gcdLigatureGlyph    = 2,
    1.31 +    gcdMarkGlyph        = 3,
    1.32 +    gcdComponentGlyph   = 4
    1.33 +};
    1.34 +
    1.35 +struct AttachmentListTable
    1.36 +{
    1.37 +    Offset  coverageTableOffset;
    1.38 +    le_uint16  glyphCount;
    1.39 +    Offset  attachPointTableOffsetArray[ANY_NUMBER];
    1.40 +};
    1.41 +
    1.42 +struct AttachPointTable
    1.43 +{
    1.44 +    le_uint16  pointCount;
    1.45 +    le_uint16  pointIndexArray[ANY_NUMBER];
    1.46 +};
    1.47 +
    1.48 +struct LigatureCaretListTable
    1.49 +{
    1.50 +    Offset  coverageTableOffset;
    1.51 +    le_uint16  ligGlyphCount;
    1.52 +    Offset  ligGlyphTableOffsetArray[ANY_NUMBER];
    1.53 +};
    1.54 +
    1.55 +struct LigatureGlyphTable
    1.56 +{
    1.57 +    le_uint16  caretCount;
    1.58 +    Offset  caretValueTableOffsetArray[ANY_NUMBER];
    1.59 +};
    1.60 +
    1.61 +struct CaretValueTable
    1.62 +{
    1.63 +    le_uint16  caretValueFormat;
    1.64 +};
    1.65 +
    1.66 +struct CaretValueFormat1Table : CaretValueTable
    1.67 +{
    1.68 +    le_int16   coordinate;
    1.69 +};
    1.70 +
    1.71 +struct CaretValueFormat2Table : CaretValueTable
    1.72 +{
    1.73 +    le_uint16  caretValuePoint;
    1.74 +};
    1.75 +
    1.76 +struct CaretValueFormat3Table : CaretValueTable
    1.77 +{
    1.78 +    le_int16   coordinate;
    1.79 +    Offset  deviceTableOffset;
    1.80 +};
    1.81 +
    1.82 +typedef ClassDefinitionTable MarkAttachClassDefinitionTable;
    1.83 +
    1.84 +struct GlyphDefinitionTableHeader
    1.85 +{
    1.86 +    fixed32 version;
    1.87 +    Offset  glyphClassDefOffset;
    1.88 +    Offset  attachListOffset;
    1.89 +    Offset  ligCaretListOffset;
    1.90 +    Offset  MarkAttachClassDefOffset;
    1.91 +
    1.92 +    const GlyphClassDefinitionTable *getGlyphClassDefinitionTable() const;
    1.93 +    const AttachmentListTable *getAttachmentListTable()const ;
    1.94 +    const LigatureCaretListTable *getLigatureCaretListTable() const;
    1.95 +    const MarkAttachClassDefinitionTable *getMarkAttachClassDefinitionTable() const;
    1.96 +};
    1.97 +
    1.98 +U_NAMESPACE_END
    1.99 +#endif