Antialias
- From: "Diego A. Fons" <diegofons apexar com ar>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Antialias
- Date: Tue, 18 Sep 2007 12:32:20 -0300
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]