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 "LEFontInstance.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
#include "Lookups.h"
|
|
|
|
#include "GlyphDefinitionTables.h"
|
|
|
|
#include "GlyphPositioningTables.h"
|
2000-12-21 02:52:24 +00:00
|
|
|
#include "GlyphPosnLookupProc.h"
|
2005-01-14 17:25:11 +00:00
|
|
|
#include "CursiveAttachmentSubtables.h"
|
2004-04-12 18:51:31 +00:00
|
|
|
#include "LEGlyphStorage.h"
|
2005-01-14 17:25:11 +00:00
|
|
|
#include "GlyphPositionAdjustments.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
|
|
|
void GlyphPositioningTableHeader::process(LEGlyphStorage &glyphStorage, GlyphPositionAdjustments *glyphPositionAdjustments, le_bool rightToLeft,
|
2000-11-28 20:56:52 +00:00
|
|
|
LETag scriptTag, LETag languageTag,
|
2008-10-28 14:50:15 +00:00
|
|
|
const GlyphDefinitionTableHeader *glyphDefinitionTableHeader, LEErrorCode &success,
|
2005-08-06 00:48:27 +00:00
|
|
|
const LEFontInstance *fontInstance, const FeatureMap *featureMap, le_int32 featureMapCount, le_bool featureOrder) const
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
2008-10-28 14:50:15 +00:00
|
|
|
if (LE_FAILURE(success)) {
|
|
|
|
return;
|
|
|
|
}
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2008-10-28 14:50:15 +00:00
|
|
|
GlyphPositioningLookupProcessor processor(this, scriptTag, languageTag, featureMap, featureMapCount, featureOrder);
|
|
|
|
if (processor.isBogus()) {
|
|
|
|
success = LE_MEMORY_ALLOCATION_ERROR;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
processor.process(glyphStorage, glyphPositionAdjustments, rightToLeft, glyphDefinitionTableHeader, fontInstance, success);
|
2005-01-14 17:25:11 +00:00
|
|
|
|
|
|
|
glyphPositionAdjustments->applyCursiveAdjustments(glyphStorage, rightToLeft, fontInstance);
|
2000-11-28 20:56:52 +00:00
|
|
|
}
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|