]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | /* |
57a6839d | 2 | * (C) Copyright IBM Corp. 1998-2013 - 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 | |
17 | U_NAMESPACE_BEGIN | |
18 | ||
57a6839d | 19 | void GlyphPositioningTableHeader::process(const LEReferenceTo<GlyphPositioningTableHeader> &base, LEGlyphStorage &glyphStorage, GlyphPositionAdjustments *glyphPositionAdjustments, le_bool rightToLeft, |
b75a7d8f | 20 | LETag scriptTag, LETag languageTag, |
57a6839d | 21 | const LEReferenceTo<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 | |
57a6839d | 28 | GlyphPositioningLookupProcessor processor(base, scriptTag, languageTag, featureMap, featureMapCount, featureOrder, success); |
729e4ab9 A |
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 | ||
38 | U_NAMESPACE_END |