Hi Christian,
I find the offset of the B2DPolyPolygon is caculated in the
SalLayout::GetOutline() (vcl\source\gdi\sallayout.cxx)
Point aPos contains the offset.
So I think I should pass a parameter from vcl to filter, the parameter should
contains both the B2DPolyPolygon and its offset.
Then I define a struct:
struct B2DPolyPolygonOffset {
B2DPolyPolygon aGlyphOutline;
Point aPos;
};
typedef std::vector<B2DPolyPolygonOffset> B2DPolyPolygonOffsetVector;
I add a parameter B2DPolyPolygonOffsetVector in SalLayout::GetOutline() and
OutputDevice::GetTextOutlines() (vcl\source\gdi\outdev3.cxx)
B2DPolyPolygonOffsetVector contains the B2DPolyPolygon and its offset.
Writer::Impl_writeText (filter\source\flash\swfwriter1.cxx) calls the
GetTextOutlines() and then I can get the B2DPolyPolygonOffsetVector with the
B2DPolyPolygon and offset in filter.
How do you think about it?
Looking forward to you reply sincerely:)
Best Regards,
Fang
Fang Yaqiong [EMAIL PROTECTED]
2007-06-15
Regards&Thanks!
Tel:010-5157-0010 Ext.6202
Beijing Redflag CH2000 Software Co., Ltd.