<div dir="ltr"><div dir="ltr"><div>Hi Regina,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 15, 2021 at 1:29 PM Regina Henschel <<a href="mailto:rb.henschel@t-online.de">rb.henschel@t-online.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
the values of the bound rectangle of a Fontwork shape are dpi dependent <br>
(I don't know why). I could increase the tolerance to cover more dpi <br>
settings as done in <a href="https://gerrit.libreoffice.org/c/core/+/123613" rel="noreferrer" target="_blank">https://gerrit.libreoffice.org/c/core/+/123613</a> or I add<br>
if (!IsDefaultDPI()) return;<br>
as done in <a href="https://gerrit.libreoffice.org/c/core/+/123512" rel="noreferrer" target="_blank">https://gerrit.libreoffice.org/c/core/+/123512</a><br>
<br>
What is the preferred way to handle it?<br></blockquote><div><br></div><div>If you can get away with IsDefaultDPI, then use that (you can't always). Technically we shouldn't be dependent on DPI when we deal with logical units, so until we find where the bug is that makes that DPI dependent, only the default DPI (96) should return the correct results (I think).<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Kind regards<br>
Regina<br></blockquote><div><br></div><div>Best Regards, Tomaž <br></div></div></div>