Re: GtkCanvas requirements?

On Mon, 2007-04-23 at 09:20 -0400, Owen Taylor wrote:

> I want to point out here that while you can specify units in points or
> ems, or whatever, with a data type of fixed point numbers, 
> or doubles, or whatever, you simply can't ignore the pixel grid and
> expect to get good looking results; it matters whether a line is 1.5
> pixels wide (a black line next to a gray line), or 2 pixels wide (a
> black line.)
> It was a deliberate design decision for the HippoCanvas that layout
> happens in integer pixels; a get_width_request() call returns 29px or
> 30px, never 29.5px.
> If you say that a box has a spacing of "10pt" you don't want to
> interpret that as 10 * (96 / 72.) = 13.33 pixels, you want to interpret
> that as 13 pixels.

Yes, I had thought of adding something like an "integer-layout" property
to GooCanvas, so that the layout in containers like GooCanvasTable can
be done in pixels if necessary. I don't think it is that difficult to


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]