equal
deleted
inserted
replaced
39 |
39 |
40 U_NAMESPACE_BEGIN |
40 U_NAMESPACE_BEGIN |
41 |
41 |
42 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GXLayoutEngine) |
42 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GXLayoutEngine) |
43 |
43 |
44 GXLayoutEngine::GXLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const MorphTableHeader *morphTable, LEErrorCode &success) |
44 GXLayoutEngine::GXLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const LEReferenceTo<MorphTableHeader> &morphTable, LEErrorCode &success) |
45 : LayoutEngine(fontInstance, scriptCode, languageCode, 0, success), fMorphTable(morphTable) |
45 : LayoutEngine(fontInstance, scriptCode, languageCode, 0, success), fMorphTable(morphTable) |
46 { |
46 { |
|
47 fMorphTable.orphan(); |
47 // nothing else to do? |
48 // nothing else to do? |
48 } |
49 } |
49 |
50 |
50 GXLayoutEngine::~GXLayoutEngine() |
51 GXLayoutEngine::~GXLayoutEngine() |
51 { |
52 { |
68 |
69 |
69 if (LE_FAILURE(success)) { |
70 if (LE_FAILURE(success)) { |
70 return 0; |
71 return 0; |
71 } |
72 } |
72 |
73 |
73 fMorphTable->process(glyphStorage); |
74 fMorphTable->process(fMorphTable, glyphStorage, success); |
74 |
75 |
75 return count; |
76 return count; |
76 } |
77 } |
77 |
78 |
78 // apply positional tables |
79 // apply positional tables |