[cairo] Using instance of cairo_font_face_t from multiple threads
Behdad Esfahbod
behdad at behdad.org
Mon Nov 30 23:14:33 UTC 2020
The answer is yes, modulo bugs.
behdad
http://behdad.org/
On Thu, Jul 23, 2020 at 10:56 AM Michal Sudolsky <sudolskym at gmail.com>
wrote:
> Hi,
>
> Is it ok to use the same instance of cairo_font_face_t from multiple
> threads?
>
> For example creating font face like this:
>
> cairo_font_face_t *font_face = cairo_ft_font_face_create_for_ft_face(face,
> FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP);
>
> 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);
>
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20201130/a0de9a87/attachment.htm>
More information about the cairo
mailing list