Robert L Krawitz <[EMAIL PROTECTED]> writes:

>    GIMP has all this already, why would you want to deal with units in
>    a library such as gimp-print?
> Two reasons:
> 1) Gimp-Print covers more than just the GIMP -- there's also the CUPS
>    driver, the Ghostscript IJS driver, and Foomatic, in addition to a
>    few third party apps.

I suggest to leave it up to the application that uses gimp-print
then. Any application that uses units in it's user interface will have
a framework to deal with units. If you add your own framework to
gimp-print you are only making things more complex.
> 2) The dimension type tells the user interface to treat this
>    parameter specially (display it in units of the user's choice).

Any length parameter in GIMP is measured in pixels and if there's
resolution information, the user is given the opportunity to use
arbitrary units to specify it. The underlying code still sees nothing
but pixels. I don't see why the underlying code (in this case
gimp-print) would have to know about this.

Gimp-developer mailing list

Reply via email to