[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] RBG subpixel rendering on a SDL surface?
From:       yuuki <yuuki () vivaldi ! net>
Date:       2017-10-15 10:00:44
Message-ID: 42377e43e4be70902a7b66e08c6fc491 () mail ! vivaldi ! net
[Download RAW message or body]

On 2017-10-07 10:11, yuuki wrote:
> Hi, I'm trying to use Cairo to draw on a SDL surface (i.e. an image 
> surfaces).
> Following this page (https://www.cairographics.org/SDL/), drawing
> works fine but I can't get subpixel rendering working for fonts.
> 
> From the doc it seems the only thing to do is to set a 
> cairo_font_options_t
> with the correct options to the context, but that doesn't seem to
> work. I can get
> grayscale antialiasing but never RGB.
> 
> I've seen that surfaces also have a cairo_font_options_t but that this
> one cannot
> be changed. So my questions are:
> 
> - Is it supposed to work or not ?
> - What factors determines how fonts get drawn (context, surface, other
> things... ) ?
> - Is there a way to get RBG subpixel rendering working with SDL ?
> 
> 
> Thanks!

To answer my own question, I managed to change the font_options of the 
surface,
but that doesn't make a difference, so I think it's just not possible to 
get
subpixel rendering to work on a SDL surface.
-- 
cairo mailing list
cairo@cairographics.org
https://lists.cairographics.org/mailman/listinfo/cairo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic