Re: Antialias
- From: "Milosz Derezynski" <internalerror gmail com>
- To: "Diego A. Fons" <diegofons apexar com ar>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Antialias
- Date: Wed, 19 Sep 2007 18:24:40 +0200
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
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]