<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm refactoring SwFntObj::DrawText() in sw/soucre/core/txtnode/fntcache.c,</div><div>and writing unit test for it. I'm looking for a way to trigger the situation that</div><div>GetMapMode().GetScaleX()  doesn't equal to 1. To be more specific, to trigger the case bStretch = true for following code snippet.<br></div><div><br></div><div>         const Fraction aTmp( 1, 1 );<br>         bool bStretch = rInf.GetWidth() && (rInf.GetLen() > TextFrameIndex(1)) && bPrt<br>                         && ( aTmp != rInf.GetOut().GetMapMode().GetScaleX() );<br></div><div><br></div>The bStretch decides whether to draw stretched text.<div><br clear="all"><div>Does anyone know how to do trigger the situation? It seems that none of the sw unit tests trigger that, scaling in the character property, or zoom in, print preview cause the value to change.</div><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div>Mark Hung<br></div></div></div></div></div>