[cairo] cairo release 1.12.10 now available
Behdad Esfahbod
behdad at behdad.org
Wed Jan 23 11:01:03 PST 2013
On 13-01-19 12:18 PM, Jan Slupski wrote:
> On 01/16/13 22:04, Chris Wilson wrote:
>> Perhaps the most noteworthy set of the bugfixes
>> was the crusage lead by Behdad Eshfabod to make font handling by
>> pango/cairo/fontconfig fully threadsafe. This testing revealed a couple
>> of races that needed fixing in Cairo's scaled-font and glyph cache.
>
> Wow, great!
>
> I see that this document http://www.cairographics.org/roadmap/ wasn't updated
> for quite some time,
> but does it mean that (mentioned there) Behdad fix include
>
> • David Turner's cairo-ft rewrite <http://david.freetype.org/cairo/>. (behdad)
>
> patch set (or probably an equivalent one)?
Not really. The thread-safety part in David's patchset is one workaround for
FreeType's design issues. The way we do it in PangoCairo is another. The
base problem is that FT_Face is not threadsafe. The workaround is to never
use it from multiple threads at the same time. cairo-ft facilitates this by
having a lock/unlock pair for the FT_Face. PangoCairo does the same. If the
user uses the FT_Face by themselves, and creates a cairo_font_face_t for that
FT_Face, and the user code does not use the cairo lock/unlock pair, problems
will happen. But there really isn't a way to work around that.
That said, I'll revisit David's patchset.
behdad
> Thanks,
> Jan
--
behdad
http://behdad.org/
More information about the cairo
mailing list