[cairo] Using instance of cairo_font_face_t from multiple threads

Michal Sudolsky sudolskym at gmail.com
Thu Jul 23 16:56:03 UTC 2020


Is it ok to use the same instance of cairo_font_face_t from multiple

For example creating font face like this:

cairo_font_face_t *font_face = cairo_ft_font_face_create_for_ft_face(face,

Then in multiple threads use it for creating scaled fonts or for setting
font of cairo context and rendering:

1. cairo_scaled_font_t *scaled_font = cairo_scaled_font_create(font_face,
m, m, options);
2. cairo_set_font_face(ctx, font_face);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20200723/e21a4662/attachment.htm>

More information about the cairo mailing list