[cairo] Re: User-font API, take 3
behdad at behdad.org
Tue Feb 6 20:53:51 PST 2007
On Tue, 2007-02-06 at 17:20 -0800, Behdad Esfahbod wrote:
> Open questions:
> - Should we add a mutex to the cairo_user_font_face_t and lock it
> around scaled_font creation? I have the use case in mind that
> the user will look for some user_data attached to the font_face
> in scaled_font_create callback and if it's not there, it will
> create and attach it. That is a bit racey. Since we have
> mutex objects at our hands reach and they cannot be a bottle
> here, I suggest we do that for the user.
This seems to be a non-issue now since Carl made cairo lock the font map
around scaled_font creation. I'm not sure if we want to lock the font
face around all callbacks to user or leave that to the user.
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo