[cairo] Hinting can't be switched off for win32?
Mikael Claesson
miclaes at yahoo.com
Sat Mar 25 04:27:10 PST 2006
I see. How about drawing the text to a temporary
buffer in a large enough size so that no hinting
occurs, and then resizing and pasting that to the
window? Perhaps this could be done one character at a
time to keep memory usage down?
Best regards
/M
--- Stuart Parmenter <stuartp at gmail.com> wrote:
> Most font options are ignored by the windows font
> backend. Not really
> sure how you would even implement those in terms of
> windows APIs
>
> stuart
>
> On 3/21/06, Mikael Claesson <miclaes at yahoo.com>
> wrote:
> > Hello.
> >
> > I'm trying to disable font hinting in my win32
> > application, but it doesn't seem to be working.
> I've
> > tried it with the win32 backend and with the image
> > buffer backend. This is the code I use:
> >
> > fo = cairo_font_options_create();
> >
> > if( cairo_font_options_status( fo ) ==
> > CAIRO_STATUS_SUCCESS )
> > {
> > cairo_font_options_set_hint_style( fo,
> > CAIRO_HINT_STYLE_NONE );
> >
> > cairo_font_options_set_hint_metrics( fo,
> > CAIRO_HINT_METRICS_OFF );
> >
> > cairo_set_font_options( cr, fo );
> >
> > cairo_font_options_destroy( fo );
> > }
> >
> > I use a font which I get through
> > cairo_win32_font_face_create_for_logfontw(), and I
> > write text using cairo_show_text().
> >
> > I do believe the font options are applied because
> I
> > can disable antialiasing by adding the appropriate
> > line above. Does anyone have any idea of how I can
> > turn of hinting aswell?
> >
> > Kind regards
> >
> > /M
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > cairo mailing list
> > cairo at cairographics.org
> >
>
http://cairographics.org/cgi-bin/mailman/listinfo/cairo
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the cairo
mailing list