Re: cairo release 1.12.10 now available

Behdad Esfahbod <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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/
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.