<div dir="ltr"><div dir="ltr">On Mon, May 11, 2020 at 10:05 AM Johann Lermer <<a href="mailto:johann.lermer@elvin.eu">johann.lermer@elvin.eu</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 11 May 2020 10:07:55 -0400<br>
"James K. Lowden" <<a href="mailto:jklowden@schemamania.org" target="_blank">jklowden@schemamania.org</a>> wrote:<br>
<br>
> Given the choice between setting a font size to, say, 12 points, and<br>
> scaling the cairo_t and font to a readable size, or just asking for 16<br>
> points, is there any theoretical advantage either way? <br>
<br>
<br>
a 12 point font which ist scaled by 1,33 is different from a 16 point font. <br>
The reason is,that smaller fonts have usually different dimensions to make <br>
them easier to read. And honestly, Cairo does not very well in scaling fonts. <br>
There seems to be a bug with scaled fonts, CTM and the cairo context, whenyou<br>
use X11 as target surface: <br>
when you set a scaled font to 12, the CTM to a scale of e.g.<br>
1,33 and then you save the context and restore it, the font's scale is<br>
at 16 and the CTM's scale at 1. Next time you write on the screen, the<br>
font has different character sizes. <br></blockquote><div><br></div><div>This doesn't make sense to me.</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">
When you use the toy api, the CTM's scale is always 1. Which is<br>
usually wrong, in my opinion, but at least the character sizes do not<br>
change.<br></blockquote><div><br></div><div>This neither.</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>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a><br>
<a href="https://lists.cairographics.org/mailman/listinfo/cairo" rel="noreferrer" target="_blank">https://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div></div>