[cairo] Cairo Font text

Eric Feillant eric.feillant at live-media.fr
Thu Jan 13 10:51:02 UTC 2022


Hi Cairo users,


I  have some troubles with overlaying text on a surface . The texts i 
overlay on the background color is not very clean, it seems to move a 
little bit on the shape.

When text change, it seems like if it was repainted again. My program 
use a loop to keep the overlay on the stream (IP CAMERA OVERLAY API).


The surface is :
  surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 
OVERLAY_WIDTH, OVERLAY_HEIGHT);


the text with font :

cairo_select_font_face(cr, "Sans", 
CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD);


Do you think i could use another font ? another method ?

Any suggest is welcome,


Thank you

Eric


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20220113/666bc73e/attachment.htm>


More information about the cairo mailing list