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