<div class="gmail_quote">2010/8/26 Dov Grobgeld <span dir="ltr"><<a href="mailto:dov.grobgeld@gmail.com">dov.grobgeld@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Just to make sure, are you refering to the internal cairo text rendering? I guess if it was pango, then you would have said so.<br><br>I'm curious what is there to fix? As far as I understand the only proper way of doing text scaling for hinted fonts is to do it iteratively until you satisfy some criteria. Even then you might get stuck in the problem that when you increase the font size by ε your rendered text is to large and when you decrease the font by the same ε, then text is too small.<br>
<br></div></blockquote><div><br></div><div>*I* was talking about unhinted text. I implemented this funtion:</div><div><br></div><div>def caiiro_draw_text_proper(...):</div><div> ..text_path(...)</div><div> ...fill(...)</div>
<div><br></div><div>But I expected <span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">CAIRO_HINT_STYLE_NONE</span> to do that. Maybe wee need <span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">CAIRO_HINT_STYLE_REALY_NONE_REALLY_SLOW</span>. Or just <span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; ">cairo_font_options_disble_glyph_cache()</span>.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Regards,<br><font color="#888888">Dov<br><br></font><div class="gmail_quote"><div><div></div>
<div class="h5">On Thu, Aug 26, 2010 at 00:57, Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><div></div><div class="h5">
<div>On 08/25/10 17:49, Arjen Nienhuis wrote:<br>
><br>
> You shouldn't do that. You should measure it at a nominal size,<br>
> scale, and<br>
> draw to the target. If you do that, you still find that your text<br>
> doesn't<br>
> quite fit in. That's because (unfortunately) cairo doesn't do fully<br>
> linearly<br>
> scalable text yet :(. What I suggest you do is to get the path for<br>
> the text<br>
> at the nominal size, scale, append path, fill.<br>
><br>
> If you draw text like that it looks a lot better. Especially if the text<br>
> is slightly rotated or skewed.<br>
><br>
> Why is there no setting to draw all text like that?<br>
<br>
</div>Fixing the cairo text implementation to do that internally has been on my<br>
plate for way too long. Would appreciate if someone takes it over.<br>
<br>
<a href="http://lists.freedesktop.org/archives/cairo/2008-May/014146.html" target="_blank">http://lists.freedesktop.org/archives/cairo/2008-May/014146.html</a><br>
<br>
behdad<br>
<br>
<br>
> Groeten, Arjen<br>
</div></div><div class="im"><div><div></div><div>--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</div></div></div></blockquote></div><br></div>
</blockquote></div><br>