]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/layout/GlyphPositioningTables.cpp
ICU-551.51.tar.gz
[apple/icu.git] / icuSources / layout / GlyphPositioningTables.cpp
... / ...
CommitLineData
1/*
2 * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
3 *
4 */
5
6#include "LETypes.h"
7#include "LEFontInstance.h"
8#include "OpenTypeTables.h"
9#include "Lookups.h"
10#include "GlyphDefinitionTables.h"
11#include "GlyphPositioningTables.h"
12#include "GlyphPosnLookupProc.h"
13#include "CursiveAttachmentSubtables.h"
14#include "LEGlyphStorage.h"
15#include "GlyphPositionAdjustments.h"
16
17U_NAMESPACE_BEGIN
18
19void GlyphPositioningTableHeader::process(const LEReferenceTo<GlyphPositioningTableHeader> &base, LEGlyphStorage &glyphStorage, GlyphPositionAdjustments *glyphPositionAdjustments, le_bool rightToLeft,
20 LETag scriptTag, LETag languageTag,
21 const LEReferenceTo<GlyphDefinitionTableHeader> &glyphDefinitionTableHeader, LEErrorCode &success,
22 const LEFontInstance *fontInstance, const FeatureMap *featureMap, le_int32 featureMapCount, le_bool featureOrder) const
23{
24 if (LE_FAILURE(success)) {
25 return;
26 }
27
28 GlyphPositioningLookupProcessor processor(base, scriptTag, languageTag, featureMap, featureMapCount, featureOrder, success);
29 if (LE_FAILURE(success)) {
30 return;
31 }
32
33 processor.process(glyphStorage, glyphPositionAdjustments, rightToLeft, glyphDefinitionTableHeader, fontInstance, success);
34
35 glyphPositionAdjustments->applyCursiveAdjustments(glyphStorage, rightToLeft, fontInstance);
36}
37
38U_NAMESPACE_END