os/textandloc/fontservices/textshaperplugin/IcuSource/layout/Features.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2  *
     3  * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
     4  *
     5  */
     6 
     7 #ifndef __FEATURES_H
     8 #define __FEATURES_H
     9 
    10 /**
    11  * \file
    12  * \internal
    13  */
    14 
    15 #include "LETypes.h"
    16 #include "OpenTypeTables.h"
    17 
    18 U_NAMESPACE_BEGIN
    19 
    20 struct FeatureRecord
    21 {
    22     ATag        featureTag;
    23     Offset      featureTableOffset;
    24 };
    25 
    26 struct FeatureTable
    27 {
    28     Offset      featureParamsOffset;
    29     le_uint16   lookupCount;
    30     le_uint16   lookupListIndexArray[ANY_NUMBER];
    31 };
    32 
    33 struct FeatureListTable
    34 {
    35     le_uint16           featureCount;
    36     FeatureRecord       featureRecordArray[ANY_NUMBER];
    37 
    38     const FeatureTable  *getFeatureTable(le_uint16 featureIndex, LETag *featureTag) const;
    39 
    40     const FeatureTable *getFeatureTable(LETag featureTag) const;
    41 };
    42 
    43 U_NAMESPACE_END
    44 #endif