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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "LETypes.h"
|
|
|
|
#include "LEGlyphFilter.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
#include "Lookups.h"
|
|
|
|
#include "GlyphDefinitionTables.h"
|
|
|
|
#include "GlyphSubstitutionTables.h"
|
2000-12-21 02:52:24 +00:00
|
|
|
#include "GlyphSubstLookupProc.h"
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "ScriptAndLanguage.h"
|
2004-04-12 18:51:31 +00:00
|
|
|
#include "LEGlyphStorage.h"
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LESwaps.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2008-10-28 14:50:15 +00:00
|
|
|
le_int32 GlyphSubstitutionTableHeader::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
|
|
|
{
|
2008-10-28 14:50:15 +00:00
|
|
|
if (LE_FAILURE(success)) {
|
|
|
|
return 0;
|
|
|
|
}
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2008-12-02 17:17:15 +00:00
|
|
|
GlyphSubstitutionLookupProcessor processor(this, scriptTag, languageTag, filter, featureMap, featureMapCount, featureOrder, success);
|
2008-10-28 14:50:15 +00:00
|
|
|
return processor.process(glyphStorage, NULL, rightToLeft, glyphDefinitionTableHeader, NULL, success);
|
2000-11-28 20:56:52 +00:00
|
|
|
}
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|