Re: Antialias
- From: "Diego A. Fons" <diegofons apexar com ar>
- To: Milosz Derezynski <internalerror gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Antialias
- Date: Thu, 20 Sep 2007 09:13:33 -0300
Milosz Derezynski wrote:
Cairo::ANTIALIAS_NONE i guess
On 9/18/07, Diego A. Fons <diegofons apexar com ar> wrote:
Hi,
I'm trying to disable the antialias capability when rendering text,
reading the reference API a wrote this:
Cairo::FontOptions cairoOpts;
Glib::RefPtr<Pango::Context> pango;
Pango::FontDescription font;
font.set_family("Courier New");
font.set_size(25000);
entry1.set_text("texto con AA default");
entry1.set_size_request(200, 25);
entry1.modify_font(font);
pango = entry1.get_pango_context();
cairoOpts.set_antialias(Cairo::ANTIALIAS_DEFAULT);
pango->set_cairo_font_options(cairoOpts);
But this code doesn't work :(
Am i doing something wrong? What is the correct way of disabling
antialias for text?
Regards,
Diego A. Fons.
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
Hi Milosz,
Ok, it was my mistake, y didn'r mention that i test all the four
posibilities:
cairoOpts.set_antialias(Cairo::ANTIALIAS_DEFAULT);
cairoOpts.set_antialias(Cairo::ANTIALIAS_NONE);
cairoOpts.set_antialias(Cairo::ANTIALIAS_GRAY);
cairoOpts.set_antialias(Cairo::ANTIALIAS_SUBPIXEL);
(i know SUBPIXEL is not supported).
And the four posibilities looked the same :(
Am I missing something?
Regards,
Diego A. Fons.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]