Re: Trying out cairo2
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Organization | University of Mons |
| Message-ID | <20150720.152706.283010988428177998.Christophe.Troestler@umons.ac.be> |
On Mon, 20 Jul 2015 09:12:55 -0400, Hendrik Boom wrote: > > There seems to be no defined default background. Back in the pdf days, I printed on a printer, and de default paper color was white, because that was the paper in the printer. From memory, the default background depends on the surface (white for PDF, transparent for PNG,...). See/execute the examples. > So henceforth I'll start by painting the background! I suppose you may need to do that in Gtk if you do not want to inherit the background of the canva. > Next I get to figure out how it knew how big to render my drawing within the window frame (defult turned out to be unexpectedly reasonable), and how to render text, and how to get events from gtk. > > AAny advice about pango or gtk bindings to use or avoid? Not really — I have not used those much. Best, C.