<br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 9:11 PM, Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 08/24/10 16:32, Kozhevnikov Mikhail wrote:<br>
<br>
> In the other one we have to fit the content into given target image size. In the latter case, I'd like to render it into a temporary surface and then copy to the target surface with scaling.<br>
<br>
</div>You shouldn't do that. You should measure it at a nominal size, scale, and<br>
draw to the target. If you do that, you still find that your text doesn't<br>
quite fit in. That's because (unfortunately) cairo doesn't do fully linearly<br>
scalable text yet :(. What I suggest you do is to get the path for the text<br>
at the nominal size, scale, append path, fill.<br></blockquote><div><br></div><div>If you draw text like that it looks a lot better. Especially if the text is slightly rotated or skewed.</div><div><br></div><div>Why is there no setting to draw all text like that?</div>
<div><br></div><div>Groeten, Arjen</div></div>