[cairo] Linux Windows differences (text)

Luca Bacci luca.bacci982 at gmail.com
Fri Sep 23 08:51:31 UTC 2022


Hello Rafał, welcome!

I believe the difference in rendering is due to the font hinting options.
Try setting it to NONE instead of using the platform-default:

static void set_font_options( cairo_t *cr )
{
  cairo_font_options_t *options = cairo_font_options_create();

  cairo_font_options_set_hint_style ( font_options, CAIRO_HINT_STYLE_NONE );
  cairo_set_font_options( cr, font_options );
  cairo_font_options_destroy( font_options );
}

Regards,
Luca

Il giorno ven 23 set 2022 alle ore 10:09 Rafał Jopek <rafaljopek at hotmail.com>
ha scritto:

> Hi,
>
> What is the reason for the significant differences between Linux and
> Windows?
> Source code was used for testing 1:1
>
> the screenshot can be seen here:
> https://github.com/rjopek/glfw-cairo/issues/5
> <https://github.com/rjopek/glfw-cairo/issues/5>
> Linux Windows differences (text) · Issue #5 · rjopek/glfw-cairo
> <https://github.com/rjopek/glfw-cairo/issues/5>
> Hi, What is the reason for the significant differences between Linux and
> Windows? Source code was used for testing 1:1
> examples/image_surfaces/gl_00.c
> github.com
>
> -- Rafał
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20220923/2fbbc2fb/attachment.htm>


More information about the cairo mailing list