[cairo] ODP: Linux Windows differences (text)

Bill Spitzak spitzak at gmail.com
Fri Sep 23 15:02:33 UTC 2022


Looks like the GL driver is not doing the transparency correctly

On Fri, Sep 23, 2022 at 2:09 AM Rafał Jopek <rafaljopek at hotmail.com> wrote:

> Luca,
>
> I used your code did not help, the window is still unchanged
>
> cairo_font_options_t *options = cairo_font_options_create();
>
> cairo_font_options_set_hint_style ( options, CAIRO_HINT_STYLE_NONE );
> cairo_set_font_options( cr, options );
> cairo_font_options_destroy( options );
>
> -- Rafał
>
> ------------------------------
> *Od:* Luca Bacci <luca.bacci982 at gmail.com>
> *Wysłane:* piątek, 23 września 2022 10:51
> *Do:* Rafał Jopek <rafaljopek at hotmail.com>
> *DW:* cairo at cairographics.org <cairo at cairographics.org>
> *Temat:* Re: [cairo] Linux Windows differences (text)
>
> 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/8669526f/attachment.htm>


More information about the cairo mailing list