~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to source/layout/Lookups.h

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * @(#)Lookups.h        1.5 00/03/15
3
 
 *
4
 
 * (C) Copyright IBM Corp. 1998, 1999, 2000, 2001 - All Rights Reserved
5
 
 *
6
 
 */
7
 
 
8
 
#ifndef __LOOKUPS_H
9
 
#define __LOOKUPS_H
10
 
 
11
 
#include "LETypes.h"
12
 
#include "OpenTypeTables.h"
13
 
 
14
 
U_NAMESPACE_BEGIN
15
 
 
16
 
enum LookupFlags
17
 
{
18
 
    lfReservedBit           = 0x0001,
19
 
    lfIgnoreBaseGlyphs      = 0x0002,
20
 
    lfIgnoreLigatures       = 0x0004,
21
 
    lfIgnoreMarks           = 0x0008,
22
 
    lfReservedMask          = 0x00F0,
23
 
    lfMarkAttachTypeMask    = 0xFF00,
24
 
    lfMarkAttachTypeShift   = 8
25
 
};
26
 
 
27
 
struct LookupSubtable
28
 
{
29
 
    le_uint16 subtableFormat;
30
 
    Offset    coverageTableOffset;
31
 
 
32
 
    le_int32  getGlyphCoverage(LEGlyphID glyphID) const;
33
 
    le_int32  getGlyphCoverage(Offset tableOffset, LEGlyphID glyphID) const;
34
 
};
35
 
 
36
 
struct LookupTable
37
 
{
38
 
    le_uint16       lookupType;
39
 
    le_uint16       lookupFlags;
40
 
    le_uint16       subTableCount;
41
 
    Offset          subTableOffsetArray[ANY_NUMBER];
42
 
 
43
 
    const LookupSubtable  *getLookupSubtable(le_uint16 subtableIndex) const;
44
 
};
45
 
 
46
 
struct LookupListTable
47
 
{
48
 
    le_uint16   lookupCount;
49
 
    Offset      lookupTableOffsetArray[ANY_NUMBER];
50
 
 
51
 
    const LookupTable *getLookupTable(le_uint16 lookupTableIndex) const;
52
 
};
53
 
 
54
 
inline le_int32 LookupSubtable::getGlyphCoverage(LEGlyphID glyphID) const
55
 
{
56
 
    return getGlyphCoverage(coverageTableOffset, glyphID);
57
 
}
58
 
 
59
 
U_NAMESPACE_END
60
 
#endif