2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
* @(#)GlyphSubstitutionTables.h 1.9 00/03/15
|
|
|
|
*
|
2003-06-03 20:58:22 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2003 - 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 "LEGlyphFilter.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
#include "Lookups.h"
|
|
|
|
#include "GlyphDefinitionTables.h"
|
|
|
|
#include "GlyphPositionAdjustments.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
struct GlyphSubstitutionTableHeader
|
|
|
|
{
|
|
|
|
fixed32 version;
|
|
|
|
Offset scriptListOffset;
|
|
|
|
Offset featureListOffset;
|
|
|
|
Offset lookupListOffset;
|
|
|
|
|
2003-09-24 21:05:40 +00:00
|
|
|
le_int32 process(LEGlyphID *&glyphs, const LETag **&glyphTags, le_int32 *&charIndices, le_int32 glyphCount,
|
2000-11-28 20:56:52 +00:00
|
|
|
le_bool rightToLeft, LETag scriptTag, LETag languageTag,
|
2001-01-19 00:30:17 +00:00
|
|
|
const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
|
2002-03-01 22:24:10 +00:00
|
|
|
const LEGlyphFilter *filter = NULL, const LETag *featureOrder = NULL) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
le_bool coversScript(LETag scriptTag) const;
|
2003-04-12 00:37:12 +00:00
|
|
|
le_bool coversScriptAndLanguage(LETag scriptTag, LETag languageTag) 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
|