<div dir="ltr"><div dir="ltr"><div>Hi Luboš,</div><div><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Luboš Luňák <<a href="mailto:l.lunak@collabora.com">l.lunak@collabora.com</a>> 於 2022年5月25日 週三 下午12:13寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wednesday 25 of May 2022, Mark Hung wrote:<br>
> Hi,<br>
><br>
> I'm refactoring SwFntObj::DrawText() in sw/soucre/core/txtnode/fntcache.c,<br>
> and writing unit test for it. I'm looking for a way to trigger the<br>
> situation that<br>
> GetMapMode().GetScaleX()  doesn't equal to 1.<br>
<br>
 Getting GetScaleX() not be 1 is easy here, I just need to open a new Writer <br>
document and Ctrl+wheel to zoom. Are you sure that is the part you have a <br>
problem reproducing?<br>
<br></blockquote><div><div><br class="gmail-Apple-interchange-newline">You're right. GetScaleX() changes as soon as I zoom the document in or out.</div><div>I have just neglected that there is another precondition: OutputDevice must be a printer (bPrt ==true)</div><div>I'm still trying to figure out how to have a OutputDevice use a different scale value.</div><div>I'm using a Linux VM so I don't know if a physical printer can make a difference.</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-- <br>
 Luboš Luňák<br>
 <a href="mailto:l.lunak@collabora.com" target="_blank">l.lunak@collabora.com</a><br>
</blockquote></div><br clear="all"><div><div><br class="gmail-Apple-interchange-newline">Thank you.</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Mark Hung<br></div></div></div></div>