equal
deleted
inserted
replaced
37 |
37 |
38 U_NAMESPACE_BEGIN |
38 U_NAMESPACE_BEGIN |
39 |
39 |
40 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GXLayoutEngine2) |
40 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GXLayoutEngine2) |
41 |
41 |
42 GXLayoutEngine2::GXLayoutEngine2(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const MorphTableHeader2 *morphTable, le_int32 typoFlags, LEErrorCode &success) |
42 GXLayoutEngine2::GXLayoutEngine2(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const LEReferenceTo<MorphTableHeader2> &morphTable, le_int32 typoFlags, LEErrorCode &success) |
43 : LayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success), fMorphTable(morphTable) |
43 : LayoutEngine(fontInstance, scriptCode, languageCode, typoFlags, success), fMorphTable(morphTable) |
44 { |
44 { |
45 // nothing else to do? |
45 // nothing else to do? |
46 } |
46 } |
47 |
47 |
48 GXLayoutEngine2::~GXLayoutEngine2() |
48 GXLayoutEngine2::~GXLayoutEngine2() |
49 { |
49 { |
50 reset(); |
50 reset(); |
66 |
66 |
67 if (LE_FAILURE(success)) { |
67 if (LE_FAILURE(success)) { |
68 return 0; |
68 return 0; |
69 } |
69 } |
70 |
70 |
71 fMorphTable->process(glyphStorage, fTypoFlags); |
71 fMorphTable->process(fMorphTable, glyphStorage, fTypoFlags, success); |
72 return count; |
72 return count; |
73 } |
73 } |
74 |
74 |
75 // apply positional tables |
75 // apply positional tables |
76 void GXLayoutEngine2::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool /*reverse*/, |
76 void GXLayoutEngine2::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool /*reverse*/, |