<div dir="ltr">The answer is yes, modulo bugs.<div><br><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 23, 2020 at 10:56 AM Michal Sudolsky <<a href="mailto:sudolskym@gmail.com">sudolskym@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Is it ok to use the same instance of cairo_font_face_t from multiple threads?<br></div><div><br></div><div>For example creating font face like this:</div><div><br></div><div>cairo_font_face_t *font_face = cairo_ft_font_face_create_for_ft_face(face, FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP);<br></div><div><br></div><div>Then in multiple threads use it for creating scaled fonts or for setting font of cairo context and rendering:</div><div><br></div><div>1. cairo_scaled_font_t *scaled_font = cairo_scaled_font_create(font_face, m, m, options);</div><div>2. cairo_set_font_face(ctx, font_face);</div><div><br></div></div>
-- <br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org" target="_blank">cairo@cairographics.org</a><br>
<a href="https://lists.cairographics.org/mailman/listinfo/cairo" rel="noreferrer" target="_blank">https://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</blockquote></div>