os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphPositioningTables.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/GlyphPositioningTables.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,43 @@
     1.4 +/*
     1.5 + *
     1.6 + * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
     1.7 + *
     1.8 + */
     1.9 +
    1.10 +#include "LETypes.h"
    1.11 +#include "LEFontInstance.h"
    1.12 +#include "OpenTypeTables.h"
    1.13 +#include "Lookups.h"
    1.14 +#include "GlyphDefinitionTables.h"
    1.15 +#include "GlyphPositioningTables.h"
    1.16 +#include "GlyphPosnLookupProc.h"
    1.17 +#include "CursiveAttachmentSubtables.h"
    1.18 +#include "LEGlyphStorage.h"
    1.19 +#include "GlyphPositionAdjustments.h"
    1.20 +
    1.21 +U_NAMESPACE_BEGIN
    1.22 +
    1.23 +void GlyphPositioningTableHeader::process(LEGlyphStorage &glyphStorage, GlyphPositionAdjustments *glyphPositionAdjustments, le_bool rightToLeft,
    1.24 +                                          LETag scriptTag, LETag languageTag,
    1.25 +                                          const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
    1.26 +                                          LEErrorCode &success,
    1.27 +                                          const LEFontInstance *fontInstance, const LETag *featureOrder) const
    1.28 +{
    1.29 +    if (LE_FAILURE(success)) {
    1.30 +        return;
    1.31 +    }
    1.32 +
    1.33 +    GlyphPositioningLookupProcessor processor(this, scriptTag, languageTag, featureOrder);
    1.34 +
    1.35 +    if (processor.isBogus()) {
    1.36 +        success = LE_MEMORY_ALLOCATION_ERROR;
    1.37 +    	return;
    1.38 +    }
    1.39 +
    1.40 +    processor.process(glyphStorage, glyphPositionAdjustments, rightToLeft,
    1.41 +    	glyphDefinitionTableHeader, fontInstance, success);
    1.42 +
    1.43 +    glyphPositionAdjustments->applyCursiveAdjustments(glyphStorage, rightToLeft, fontInstance);
    1.44 +}
    1.45 +
    1.46 +U_NAMESPACE_END