2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
*
|
2008-10-28 14:50:15 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2008 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GLYPHSUBSTITUTIONTABLES_H
|
|
|
|
#define __GLYPHSUBSTITUTIONTABLES_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
#include "Lookups.h"
|
2004-02-14 01:09:08 +00:00
|
|
|
#include "GlyphLookupTables.h"
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2005-01-14 17:25:11 +00:00
|
|
|
class LEGlyphStorage;
|
|
|
|
class LEGlyphFilter;
|
|
|
|
struct GlyphDefinitionTableHeader;
|
2004-04-12 18:51:31 +00:00
|
|
|
|
2004-02-14 01:09:08 +00:00
|
|
|
struct GlyphSubstitutionTableHeader : public GlyphLookupTableHeader
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
2008-10-28 14:50:15 +00:00
|
|
|
le_int32 process(LEGlyphStorage &glyphStorage,
|
|
|
|
le_bool rightToLeft,
|
|
|
|
LETag scriptTag,
|
|
|
|
LETag languageTag,
|
|
|
|
const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
|
|
|
|
const LEGlyphFilter *filter,
|
|
|
|
const FeatureMap *featureMap,
|
|
|
|
le_int32 featureMapCount,
|
|
|
|
le_bool featureOrder,
|
|
|
|
LEErrorCode &success) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum GlyphSubstitutionSubtableTypes
|
|
|
|
{
|
|
|
|
gsstSingle = 1,
|
|
|
|
gsstMultiple = 2,
|
|
|
|
gsstAlternate = 3,
|
|
|
|
gsstLigature = 4,
|
|
|
|
gsstContext = 5,
|
2002-12-30 19:53:40 +00:00
|
|
|
gsstChainingContext = 6,
|
|
|
|
gsstExtension = 7,
|
|
|
|
gsstReverseChaining = 8
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef LookupSubtable GlyphSubstitutionSubtable;
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|
2000-11-28 20:56:52 +00:00
|
|
|
#endif
|