os/textandloc/fontservices/textshaperplugin/IcuSource/layout/ContextualGlyphInsertion.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
 *
sl@0
     3
 * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
sl@0
     4
 *
sl@0
     5
 */
sl@0
     6
sl@0
     7
#ifndef __CONTEXTUALGLYPHINSERTION_H
sl@0
     8
#define __CONTEXTUALGLYPHINSERTION_H
sl@0
     9
sl@0
    10
/**
sl@0
    11
 * \file
sl@0
    12
 * \internal
sl@0
    13
 */
sl@0
    14
sl@0
    15
#include "LETypes.h"
sl@0
    16
#include "LayoutTables.h"
sl@0
    17
#include "StateTables.h"
sl@0
    18
#include "MorphTables.h"
sl@0
    19
#include "MorphStateTables.h"
sl@0
    20
sl@0
    21
U_NAMESPACE_BEGIN
sl@0
    22
sl@0
    23
struct ContextualGlyphInsertionHeader : MorphStateTableHeader
sl@0
    24
{
sl@0
    25
};
sl@0
    26
sl@0
    27
enum ContextualGlyphInsertionFlags
sl@0
    28
{
sl@0
    29
    cgiSetMark                  = 0x8000,
sl@0
    30
    cgiDontAdvance              = 0x4000,
sl@0
    31
    cgiCurrentIsKashidaLike     = 0x2000,
sl@0
    32
    cgiMarkedIsKashidaLike      = 0x1000,
sl@0
    33
    cgiCurrentInsertBefore      = 0x0800,
sl@0
    34
    cgiMarkInsertBefore         = 0x0400,
sl@0
    35
    cgiCurrentInsertCountMask   = 0x03E0,
sl@0
    36
    cgiMarkedInsertCountMask    = 0x001F
sl@0
    37
};
sl@0
    38
sl@0
    39
struct LigatureSubstitutionStateEntry : StateEntry
sl@0
    40
{
sl@0
    41
    ByteOffset currentInsertionListOffset;
sl@0
    42
    ByteOffset markedInsertionListOffset;
sl@0
    43
};
sl@0
    44
sl@0
    45
U_NAMESPACE_END
sl@0
    46
#endif