[Top][All Lists]

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

Re: max and min operators in draw_round_box

From: David Kastrup
Subject: Re: max and min operators in draw_round_box
Date: Thu, 10 Jan 2019 03:20:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Tyler Mitchell <address@hidden> writes:
>> On Wed, Jan 09, 2019 at 12:27:13PM +0000, Stephen Wilkinson wrote:
>>> [...] it seems to be a struggle to get the postscript file to
>>> open in anything at all.
>> I looked at this and it seems the culprit is the draw_round_box
>> procedure which uses 'max' and 'min' operators, which are not part
>> of standard PostScript, but are available in Ghostscript:
>> Adding this to the PostScript output (before draw_round_box is
>> defined) makes it double-clickable in OS X:
>>  /min { 2 copy gt { exch } if pop } bind def
>>  /max { 2 copy lt { exch } if pop } bind def
>> Is it possible to include these in so
>> that the .ps output could be processed with non-Ghostscript
>> interpreters?
> I'd rather we make the input not depend on those functions in the first
> place: the names are too generic for comfort.
> Looks like my fault: their use can be traced to a commit of mine from
> 2013.  I'll fix that.

Tracker issue: 5459 (
Rietveld issue: 342300043 (
Issue description:
  Avoid Ghostscript-specific max/min operators in PS

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]