From MAILER-DAEMON Tue Jan 23 01:06:40 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1edrjE-0001ye-JM
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 01:06:40 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33831)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1edrjB-0001xp-OW
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 01:06:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1edrj7-0004uh-Jq
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 01:06:37 -0500
Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:43304)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <pwessel@hawaii.edu>) id 1edrj7-0004uO-A4
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 01:06:33 -0500
Received: by mail-pf0-x236.google.com with SMTP id y26so8972262pfi.10
	for <bug-ghostscript@gnu.org>; Mon, 22 Jan 2018 22:06:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=hawaii-edu.20150623.gappssmtp.com; s=20150623;
	h=from:mime-version:date:subject:cc:to:message-id;
	bh=uykke8gCxDBwf4/lOas3B9ZkNa+a2GAV7afO9F4jwhk=;
	b=p3Ivy4/In/oL2Tug965IRUUdWbIheiQidKlpLOUcGMUoFm3m82IfSp3Y4VWq9DpqPt
	tE+hbp7RaI/AKGUdqUWbZKCdKlTOf5n4xxyLon/SLGqETsiqM45DS1YhW1xQTAMHvluM
	J0gLHfenZ3RQj/rIZcybEOhA953SPtU/aRDvdApQ2PRFCN4zk6SBCCSssuB/Mbp9oNRs
	O5573rdQfTYNv50pCcWGgMT1/A6jy0Nwq8n/VoBq1wx5RvtVufKKfcNowMNOKXdpbhnM
	tmnam0xC536K2DGvZHYKU8YoIUjy2guebpIoQjgL3ItT9I+VMj9Wdy80PFCPkbwjih8K
	JjZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:from:mime-version:date:subject:cc:to:message-id;
	bh=uykke8gCxDBwf4/lOas3B9ZkNa+a2GAV7afO9F4jwhk=;
	b=fBK9XVh45Ej6JymKRuuA088F3tdy1BClo8gwSDf+ZWCImTxDH19jBfuiDQ7IUQlZhZ
	khGQjeEY8f6AsDdbF39ilWojKwkGZIeSI4hoXQpwsWf9fpPh4RruHrjMC0nZ8LBXv2FL
	Hc6shnVdiVM56MyyowHsJln/ZaYVRVCmJK5z7E+GnMLPBHdT7Xych8PT18SmTUOZn4bT
	8fCyK6WwSqGm8PWi3xRBhnJ60t5adkcZ2vYuJzZiusWk1OSR45bfC3oHt3dP4SXukLAO
	YnHGOjoyraWDtu7GkUKbRwxJt3e9H2XH31fFNX+oD0sw8PhHn2Wu2DDt017xdym+Oa39
	/oig==
X-Gm-Message-State: AKwxytd2gTLFSgQM3UvKMyCN0eFC6nHXTcfZDw2uCMy+yz818IPpDMW7
	dX+a0RJF/yiIiI2ujkOi8MywhlNgQxf3o/P3Ff3d0VCOUu/1ELpUJUMI+So7FqJYa+hG5kInMCy
	VHEWiicoC0Vsd2zQ5axORJsYD/tQiA33764kcRMJrBALILpJEdILcvoYVj6i2J1DCxA==
X-Google-Smtp-Source: AH8x225PR2EDGNmfneKBEOPfgJm4ws6XtXCf+nO6kNg7BF9WPn7lZwLBtqf1GR3ieUDhq37/LXt3lg==
X-Received: by 10.98.147.29 with SMTP id b29mr5107946pfe.229.1516687591627;
	Mon, 22 Jan 2018 22:06:31 -0800 (PST)
Received: from macnut.soest.hawaii.edu (macnut.soest.hawaii.edu.
	[128.171.158.173]) by smtp.gmail.com with ESMTPSA id
	c184sm2924938pfc.60.2018.01.22.22.06.28
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 22 Jan 2018 22:06:29 -0800 (PST)
From: Paul Wessel <pwessel@hawaii.edu>
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_4E00A75F-1573-43B7-B29E-7658F1B03D79"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Date: Mon, 22 Jan 2018 20:06:27 -1000
Subject: Jittery text in successive PostScript sequences
To: bug-ghostscript@gnu.org
Message-Id: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
X-Mailer: Apple Mail (2.3445.5.20)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400e:c00::236
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2018 06:06:39 -0000


--Apple-Mail=_4E00A75F-1573-43B7-B29E-7658F1B03D79
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi developers-

GMT (gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu/>) is using =
PostScript to make plots and one application builds an animation from =
sequences of PostScript plots converted to PNG with ghostscript (9.22) =
and then to MP4 with ffmpeg.  We have found a problem that may be a =
ghostscript bug, or alternatively we are doing something wrong.  When =
using a perspective view (i.e., using a matrix concatenation to simulate =
perspective), the resulting oblique text strings "jitter" when viewed as =
a movie.  For an example, see www.soest.hawaii.edu/pwessel/bug_200.mp4 =
<http://www.soest.hawaii.edu/pwessel/bug_200.mp4>.  As the movie plays, =
you will see the INDIVIDUAL letters in the word HELL jitter relative to =
each other, despite being set via a single show command (here just a =
snippet of our code; setting currentpoint, font etc are omitted here)

(HELL) dup dup stringwidth pop -2 div exch sh -2 div rmoveto show

where sh is defined as

/sh {gsave matrix setmatrix 0 0 moveto true charpath flattenpath =
pathbbox newpath 4 1 roll pop pop pop grestore} bind def

[a complete PS example of a single frame can be found here: =
www.soest.hawaii.edu/pwessel/bug.ps =
<http://www.soest.hawaii.edu/pwessel/bug.ps>.

At first we suspected flattenpath but HELL (using Helvetica) has no =
curved segments (?).  We also tried to override the flattening with 0.2 =
setflat, but no difference.  We suspect some sort of roundoff but it =
affects the different letters in the word differently, and that is not =
under our control.  Could any of the operators above be subject to =
round-off that affect individual letters?

Perhaps developers know where this may happen and if there is anything =
we can do on our side to remedy the problem.  As you can see there is no =
jittering for plotting a circle or lines.  The map frame annotations =
show the same jittering so it affects all text.

Thanks for any insight!  We can provide more details, all individual PS =
files, etc upon request. FYI, we have tried both tif and jpg instead of =
png but no difference. We also made PDFs and used OS X Automator to =
build PNGs and made a movie using QuickTime Pro; same jittering (not =
sure if OS X High Sierra uses ghostscript in Preview etc).

Paul Wessel
Lead developer
The Generic Mapping Tools


--Apple-Mail=_4E00A75F-1573-43B7-B29E-7658F1B03D79
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hi =
developers-<div class=3D""><br class=3D""></div><div class=3D"">GMT (<a =
href=3D"http://gmt.soest.hawaii.edu" class=3D"">gmt.soest.hawaii.edu</a>) =
is using PostScript to make plots and one application builds an =
animation from sequences of PostScript plots converted to PNG with =
ghostscript (9.22) and then to MP4 with ffmpeg. &nbsp;We have found a =
problem that may be a ghostscript bug, or alternatively we are doing =
something wrong. &nbsp;When using a perspective view (i.e., using a =
matrix concatenation to simulate perspective), the resulting oblique =
text strings "jitter" when viewed as a movie. &nbsp;For an example, see =
<a href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" =
class=3D"">www.soest.hawaii.edu/pwessel/bug_200.mp4</a>. &nbsp;As the =
movie plays, you will see the INDIVIDUAL letters in the word HELL jitter =
relative to each other, despite being set via a single show command =
(here just a snippet of our code; setting currentpoint, font etc are =
omitted here)</div><div class=3D""><br class=3D""></div><div =
class=3D""><div class=3D"">(HELL) dup dup stringwidth pop -2 div exch sh =
-2 div rmoveto show</div></div><div class=3D""><br class=3D""></div><div =
class=3D"">where sh is defined as</div><div class=3D""><br =
class=3D""></div><div class=3D""><div class=3D"">/sh {gsave matrix =
setmatrix 0 0 moveto true charpath flattenpath pathbbox newpath 4 1 roll =
pop pop pop grestore} bind def</div></div><div class=3D""><br =
class=3D""></div><div class=3D"">[a complete PS example of a single =
frame can be found here:&nbsp;<a =
href=3D"http://www.soest.hawaii.edu/pwessel/bug.ps" =
class=3D"">www.soest.hawaii.edu/pwessel/bug.ps</a>.</div><div =
class=3D""><br class=3D""></div><div class=3D"">At first we suspected =
flattenpath but HELL (using Helvetica) has no curved segments (?). =
&nbsp;We also tried to override the flattening with 0.2 setflat, but no =
difference. &nbsp;We suspect some sort of roundoff but it affects the =
different letters in the word differently, and that is not under our =
control. &nbsp;Could any of the operators above be subject to round-off =
that affect individual letters?</div><div class=3D""><br =
class=3D""></div><div class=3D"">Perhaps developers know where this may =
happen and if there is anything we can do on our side to remedy the =
problem. &nbsp;As you can see there is no jittering for plotting a =
circle or lines. &nbsp;The map frame annotations show the same jittering =
so it affects all text.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Thanks for any insight! &nbsp;We can provide more details, =
all individual PS files, etc upon request. FYI, we have tried both tif =
and jpg instead of png but no difference. We also made PDFs and used OS =
X Automator to build PNGs and made a movie using QuickTime Pro; same =
jittering (not sure if OS X High Sierra uses ghostscript in Preview =
etc).</div><div class=3D""><br class=3D""></div><div class=3D"">Paul =
Wessel</div><div class=3D"">Lead developer</div><div class=3D"">The =
Generic Mapping Tools</div><div class=3D""><br =
class=3D""></div></body></html>=

--Apple-Mail=_4E00A75F-1573-43B7-B29E-7658F1B03D79--


From MAILER-DAEMON Tue Jan 23 02:25:21 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1edsxN-0004C9-Ki
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 02:25:21 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47440)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1edsxK-0004BN-2Q
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 02:25:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1edsxI-0007w5-Ea
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 02:25:18 -0500
Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:44522)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <pwessel@hawaii.edu>) id 1edsxH-0007vI-Ko
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 02:25:16 -0500
Received: by mail-pg0-x22b.google.com with SMTP id m20so9069121pgc.11
	for <bug-ghostscript@gnu.org>; Mon, 22 Jan 2018 23:25:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=hawaii-edu.20150623.gappssmtp.com; s=20150623;
	h=mime-version:subject:from:in-reply-to:date:cc:message-id:references
	:to; bh=kyYUXOs6hfSbpWsKotvJfIHVhYkvokHi5IJdoKvIUd0=;
	b=oV/dmhcg7taZcj7ivK11/RgGqz1P0HWz3+gTHntKCzCqdA10Ul9u3DHVkU9g8QxvFH
	MIz+U+C/tAoECLslqNiQ0RkOobyWTAAMDE44oR4zTtZRbP66bSJH/TCN4CGJC+REvQ6a
	qGSjJ04olHL7zYcz2+Nrh+h0rL1J7sspc+yEIsco7OXu7TGFN/8W1C8bww+iLEgkn1cB
	5UqXmoOcGWL01wvsdbrlFCwLVsFohQ/QE7ElsFjkYKPSFoQWhJ/eSRxZRnIZiqv0dWSK
	4WzPJwsfkY09z9PTwM5+xlINUZvyOCDR0Y96nmENmnJ+Yu7A1z76uZjJ+LIEYaO1a4YW
	WqOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=kyYUXOs6hfSbpWsKotvJfIHVhYkvokHi5IJdoKvIUd0=;
	b=ZGHKqB+11CYr47dnYfvN4yNkeaSHpihmRD/pLTmvZp55L6voK+vYO7P2PT9xA1hXQc
	EllVAdeE1aNwu00ON5220xgp+21B5fW1fNmDNtcndni5IzpDsCk9Waw7H6AnnIJT9Aup
	GiXQfy7cUMKnXcQdVPa3dnS9woc3+W9feCUuo0YZifOv+hZn05u2egGjYfKFxS1lLufD
	szxOLLCne38cIiHvWHvMQxrr8ILZlWJZNQ0ga+A061NwpEUkyaNiwXeXOADL/GCmbMnU
	lQHsogfc15SXc4Aq/WSHJOxPJGw3P6vUEL1/D2vJ7vTEWfqmS0fZQ8xUhkOPhFJ9N6wK
	n5HQ==
X-Gm-Message-State: AKwxytf7r/Z32FnHqFf4HHjvU3FB4NReFwiMO/Noq2cTmeToYJ9DkDxt
	Nwcs7kywJy7WvGfrabHFRiZxhuC3MSB2R74obXKPZ7IzsTgRD2bFrqS0LGoFEo/+n3SuRsZbOfM
	PRYLRFwj82qpMcrCeMLrE/6DNAMnxz5oSEZX2kYFJyjqup+lHcP7H75MWUMGvlw1POA==
X-Google-Smtp-Source: AH8x225wjXgkB1wMJineWJAE/8yFJR5uAu+t+IYd/lNwBTDZlqTqS5ia5shp2Qh6T/oPpuZtz1RK3Q==
X-Received: by 10.98.131.200 with SMTP id h191mr9636904pfe.149.1516692314303; 
	Mon, 22 Jan 2018 23:25:14 -0800 (PST)
Received: from ?IPv6:2605:e000:d742:3a00:58f9:ce5d:c8e5:eece?
	([2605:e000:d742:3a00:58f9:ce5d:c8e5:eece])
	by smtp.gmail.com with ESMTPSA id
	x64sm27337520pgb.79.2018.01.22.23.25.11
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 22 Jan 2018 23:25:12 -0800 (PST)
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_05EF9CBE-2AC0-4011-B2E4-DE08895FA8EB"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Subject: Re: Jittery text in successive PostScript sequences
From: Paul Wessel <pwessel@hawaii.edu>
In-Reply-To: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
Date: Mon, 22 Jan 2018 21:25:09 -1000
Message-Id: <EB374F73-62C4-4FD5-B0EA-6AE51622A173@hawaii.edu>
References: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
To: bug-ghostscript@gnu.org
X-Mailer: Apple Mail (2.3445.5.20)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400e:c05::22b
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2018 07:25:19 -0000


--Apple-Mail=_05EF9CBE-2AC0-4011-B2E4-DE08895FA8EB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Sorry, should probably state what our final gs command is.  Here is one =
(building a tif):

gs -q -dSAFER -dNOPAUSE -dBATCH -dPDFSETTINGS=3D/prepress =
-dDownsampleColorImages=3Dfalse -dDownsampleGrayImages=3Dfalse =
-dDownsampleMonoImages=3Dfalse -dUseFlateCompression=3Dtrue =
-dEmbedAllFonts=3Dtrue -dSubsetFonts=3Dtrue =
-dMonoImageFilter=3D/FlateEncode -dAutoFilterGrayImages=3Dfalse =
-dGrayImageFilter=3D/FlateEncode -dAutoFilterColorImages=3Dfalse =
-dColorImageFilter=3D/FlateEncode -dSCANCONVERTERTYPE=3D2 =
-dMaxBitmap=3D2147483647 -dUseFastColor=3Dtrue -dTextAlphaBits=3D4 =
-sDEVICE=3Dtiff24nc -sCompression=3Dlzw -g800x500 -r200 =
-sOutputFile=3D'bug_163.tif' -f'./psconvert_22623d.eps'


> On Jan 22, 2018, at 8:06 PM, Paul Wessel <pwessel@hawaii.edu> wrote:
>=20
> Hi developers-
>=20
> GMT (gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu/>) is using =
PostScript to make plots and one application builds an animation from =
sequences of PostScript plots converted to PNG with ghostscript (9.22) =
and then to MP4 with ffmpeg.  We have found a problem that may be a =
ghostscript bug, or alternatively we are doing something wrong.  When =
using a perspective view (i.e., using a matrix concatenation to simulate =
perspective), the resulting oblique text strings "jitter" when viewed as =
a movie.  For an example, see www.soest.hawaii.edu/pwessel/bug_200.mp4 =
<http://www.soest.hawaii.edu/pwessel/bug_200.mp4>.  As the movie plays, =
you will see the INDIVIDUAL letters in the word HELL jitter relative to =
each other, despite being set via a single show command (here just a =
snippet of our code; setting currentpoint, font etc are omitted here)
>=20
> (HELL) dup dup stringwidth pop -2 div exch sh -2 div rmoveto show
>=20
> where sh is defined as
>=20
> /sh {gsave matrix setmatrix 0 0 moveto true charpath flattenpath =
pathbbox newpath 4 1 roll pop pop pop grestore} bind def
>=20
> [a complete PS example of a single frame can be found here: =
www.soest.hawaii.edu/pwessel/bug.ps =
<http://www.soest.hawaii.edu/pwessel/bug.ps>.
>=20
> At first we suspected flattenpath but HELL (using Helvetica) has no =
curved segments (?).  We also tried to override the flattening with 0.2 =
setflat, but no difference.  We suspect some sort of roundoff but it =
affects the different letters in the word differently, and that is not =
under our control.  Could any of the operators above be subject to =
round-off that affect individual letters?
>=20
> Perhaps developers know where this may happen and if there is anything =
we can do on our side to remedy the problem.  As you can see there is no =
jittering for plotting a circle or lines.  The map frame annotations =
show the same jittering so it affects all text.
>=20
> Thanks for any insight!  We can provide more details, all individual =
PS files, etc upon request. FYI, we have tried both tif and jpg instead =
of png but no difference. We also made PDFs and used OS X Automator to =
build PNGs and made a movie using QuickTime Pro; same jittering (not =
sure if OS X High Sierra uses ghostscript in Preview etc).
>=20
> Paul Wessel
> Lead developer
> The Generic Mapping Tools
>=20


--Apple-Mail=_05EF9CBE-2AC0-4011-B2E4-DE08895FA8EB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D"">Sorry, should probably state what our final gs command is. =
&nbsp;Here is one (building a tif):<div class=3D""><br =
class=3D""></div><div class=3D""><div style=3D"margin: 0px; =
font-stretch: normal; font-size: 24px; line-height: normal; font-family: =
Menlo; background-color: rgb(255, 255, 255);" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">gs -q =
-dSAFER -dNOPAUSE -dBATCH -dPDFSETTINGS=3D/prepress =
-dDownsampleColorImages=3Dfalse -dDownsampleGrayImages=3Dfalse =
-dDownsampleMonoImages=3Dfalse -dUseFlateCompression=3Dtrue =
-dEmbedAllFonts=3Dtrue -dSubsetFonts=3Dtrue =
-dMonoImageFilter=3D/FlateEncode -dAutoFilterGrayImages=3Dfalse =
-dGrayImageFilter=3D/FlateEncode -dAutoFilterColorImages=3Dfalse =
-dColorImageFilter=3D/FlateEncode -dSCANCONVERTERTYPE=3D2 =
-dMaxBitmap=3D2147483647 -dUseFastColor=3Dtrue -dTextAlphaBits=3D4 =
-sDEVICE=3Dtiff24nc -sCompression=3Dlzw -g800x500 -r200 =
-sOutputFile=3D'bug_163.tif' -f'./psconvert_22623d.eps'</span></div><div =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""><br class=3D""></span></div><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Jan 22, 2018, at 8:06 PM, =
Paul Wessel &lt;<a href=3D"mailto:pwessel@hawaii.edu" =
class=3D"">pwessel@hawaii.edu</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D"">Hi developers-<div =
class=3D""><br class=3D""></div><div class=3D"">GMT (<a =
href=3D"http://gmt.soest.hawaii.edu/" class=3D"">gmt.soest.hawaii.edu</a>)=
 is using PostScript to make plots and one application builds an =
animation from sequences of PostScript plots converted to PNG with =
ghostscript (9.22) and then to MP4 with ffmpeg. &nbsp;We have found a =
problem that may be a ghostscript bug, or alternatively we are doing =
something wrong. &nbsp;When using a perspective view (i.e., using a =
matrix concatenation to simulate perspective), the resulting oblique =
text strings "jitter" when viewed as a movie. &nbsp;For an example, see =
<a href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" =
class=3D"">www.soest.hawaii.edu/pwessel/bug_200.mp4</a>. &nbsp;As the =
movie plays, you will see the INDIVIDUAL letters in the word HELL jitter =
relative to each other, despite being set via a single show command =
(here just a snippet of our code; setting currentpoint, font etc are =
omitted here)</div><div class=3D""><br class=3D""></div><div =
class=3D""><div class=3D"">(HELL) dup dup stringwidth pop -2 div exch sh =
-2 div rmoveto show</div></div><div class=3D""><br class=3D""></div><div =
class=3D"">where sh is defined as</div><div class=3D""><br =
class=3D""></div><div class=3D""><div class=3D"">/sh {gsave matrix =
setmatrix 0 0 moveto true charpath flattenpath pathbbox newpath 4 1 roll =
pop pop pop grestore} bind def</div></div><div class=3D""><br =
class=3D""></div><div class=3D"">[a complete PS example of a single =
frame can be found here:&nbsp;<a =
href=3D"http://www.soest.hawaii.edu/pwessel/bug.ps" =
class=3D"">www.soest.hawaii.edu/pwessel/bug.ps</a>.</div><div =
class=3D""><br class=3D""></div><div class=3D"">At first we suspected =
flattenpath but HELL (using Helvetica) has no curved segments (?). =
&nbsp;We also tried to override the flattening with 0.2 setflat, but no =
difference. &nbsp;We suspect some sort of roundoff but it affects the =
different letters in the word differently, and that is not under our =
control. &nbsp;Could any of the operators above be subject to round-off =
that affect individual letters?</div><div class=3D""><br =
class=3D""></div><div class=3D"">Perhaps developers know where this may =
happen and if there is anything we can do on our side to remedy the =
problem. &nbsp;As you can see there is no jittering for plotting a =
circle or lines. &nbsp;The map frame annotations show the same jittering =
so it affects all text.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Thanks for any insight! &nbsp;We can provide more details, =
all individual PS files, etc upon request. FYI, we have tried both tif =
and jpg instead of png but no difference. We also made PDFs and used OS =
X Automator to build PNGs and made a movie using QuickTime Pro; same =
jittering (not sure if OS X High Sierra uses ghostscript in Preview =
etc).</div><div class=3D""><br class=3D""></div><div class=3D"">Paul =
Wessel</div><div class=3D"">Lead developer</div><div class=3D"">The =
Generic Mapping Tools</div><div class=3D""><br =
class=3D""></div></div></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_05EF9CBE-2AC0-4011-B2E4-DE08895FA8EB--


From MAILER-DAEMON Tue Jan 23 10:45:37 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ee0lV-0006sy-0c
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 10:45:37 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36649)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ebyrob@gmail.com>) id 1ee0lN-0006ps-IS
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 10:45:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ebyrob@gmail.com>) id 1ee0lH-0007LL-Py
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 10:45:29 -0500
Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:44557)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <ebyrob@gmail.com>) id 1ee0lH-0007Iv-9y
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 10:45:23 -0500
Received: by mail-pg0-x22a.google.com with SMTP id m20so533915pgc.11
	for <bug-ghostscript@gnu.org>; Tue, 23 Jan 2018 07:45:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=VhamXi2Ic989JIwY/ZUPvb/rnQcjf3PGt9YwoNQ0gHQ=;
	b=EujJQVIWKx8ohmOu9dzeTiDAZHp1rD3ApEdzoCD3St1QRhhGszjxCmmVRhHGuPX8Lw
	LB7tSDxsgaYWDj0r5wZTw+e8Qx/oFhFCnk4KrNSeoQ8dABWaoW9W1y9H4QQupAu++gGw
	RT15x0g6szowdPAyL0rrA2hCokqv5BD0fKRjoQXvlMjRp10roVXQlybo+0abBIrmxwXq
	l3dkS+F6C8kEF/At/xTCMwvUuermTp1WLko4KrVnI8awv7IJYpfOhu2Ml7A11ee1NqYE
	STUMuY3oBnCmRwA9OOJPfyN6Tz6OFM3UVwb/yKp58vg3VXgh2Wsv5MSBqPFxMWIjM9Co
	Ou8Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=VhamXi2Ic989JIwY/ZUPvb/rnQcjf3PGt9YwoNQ0gHQ=;
	b=jkXGo9MmnoHPsop17IzZSgapdsUHoHPmYjYHXfXqgD2molqOIxX8+gnYLFSue4ewSj
	FvgcoxXTvV4D56Eqao/TlVfNdixdabaNyYhNG5zluqd7O+01TdfZ8EihV5rkuRC0A8KE
	ud+33wT0tgyFzVcFzBoMsyS/bxBVIBzK4eEob69+h1oICbQZ+3qNsRD237BoqsgMY+L0
	QN76z4OROahD00tl3VNgeIiAoldZDcnWho3neKxamjU+eI2Iqu814ebQeM43pidrQ0p2
	vWwYnxNXE22UGd4hNeVRCQ60pWSWt+qGC4un1oyY9HMJKBWGvfD9eodFb0kb6ZzIfR8E
	mzcA==
X-Gm-Message-State: AKwxytflOSGW829RiH93dZ34tCC0OYiFyMWuSptMiOk+UTBZRLr2R7T/
	GA0uYaq1WE8c6HKQf/OIGUY7yDLnoz2vEz8Bt7Q=
X-Google-Smtp-Source: AH8x224XVXolhJaLKNpXnj2Wve8s5GD75K1Zy/fRt0iGG1t+qzMIDea0cnr61Y+12lHg6EA4aJCS2PBVoKXnMlhvMuo=
X-Received: by 2002:a17:902:d917:: with SMTP id
	c23-v6mr6075774plz.231.1516722321829; 
	Tue, 23 Jan 2018 07:45:21 -0800 (PST)
MIME-Version: 1.0
Received: by 10.100.165.106 with HTTP; Tue, 23 Jan 2018 07:45:21 -0800 (PST)
In-Reply-To: <EB374F73-62C4-4FD5-B0EA-6AE51622A173@hawaii.edu>
References: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
	<EB374F73-62C4-4FD5-B0EA-6AE51622A173@hawaii.edu>
From: Bob Eby <ebyrob@gmail.com>
Date: Tue, 23 Jan 2018 10:45:21 -0500
Message-ID: <CAFNt6w09DGN83fCNfqXNRUwVHHDAdyPdCtrr878d-=_Ww2fAVw@mail.gmail.com>
Subject: Re: Jittery text in successive PostScript sequences
To: Paul Wessel <pwessel@hawaii.edu>
Cc: bug-ghostscript@gnu.org
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400e:c05::22a
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2018 15:45:35 -0000

Hi Mr. Wessel,

Ghostscript is written by Artifex Software: https://artifex.com/
I believe they run a website here: https://ghostscript.com/ for the
main Ghostscript product along with mailing list(s).

This mailing list is for an old GNU copy of Ghostscript back when they
went from regular GPL to Aferro GPL around version 9.14 or so.

Thanks,
Robert Eby


From MAILER-DAEMON Tue Jan 23 12:02:00 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ee1xQ-0008ML-NY
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 12:02:00 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41457)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kuszmaul@gmail.com>) id 1ee0yz-00038k-Qm
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 10:59:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kuszmaul@gmail.com>) id 1ee0yy-0005Mp-Ef
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 10:59:33 -0500
Received: from mail-qt0-x234.google.com ([2607:f8b0:400d:c0d::234]:44926)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <kuszmaul@gmail.com>) id 1ee0yy-0005MR-9r
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 10:59:32 -0500
Received: by mail-qt0-x234.google.com with SMTP id l20so2456002qtj.11
	for <bug-ghostscript@gnu.org>; Tue, 23 Jan 2018 07:59:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=nv3sgwesvng9I1zU1qWD7ZAndNbTe51rQIZEb2gV+ww=;
	b=gQAaO8oy4qikSXqTTdZaJPEDdgBrTg2dKaM1jkf7o2aSWQfgS/9tjg3mvDa2dbUeiv
	hSj8F5voGEshfadiPa68WP70tCiamTYJ+Tn6Hp5fLOhdPZIglmEQ9dchuU4RNu+Dxj1L
	MeAnW8bZM9C0Y7V7q4skTxyFwoYm2p2Sb/J8pN42glrnK3aoEoysYsFe4ila0zeyonhp
	n+zDQwruZBJRetxwVXi4HimWZ1fTz4zpTyTnRSRoKUmkntMzt8sUleKhwB9X3WvWHght
	Qu0tkkciBpUhnTfeyb30j9PaeXIvKIXKLjeBkEbZdmHylNVlUae7hCGPxYy+6vfG/1+I
	SvGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=nv3sgwesvng9I1zU1qWD7ZAndNbTe51rQIZEb2gV+ww=;
	b=mJkbIrF+M8R76j3vVaeoB9uWiJzVKgZS9ymktXfnLgkhURLf3Y/fvTE1L6NzOtEpBj
	k5TzuSFkKJPZLU/5XGf9g77+PELJbZVFpp6/256uOZwBuYMujW9LZiB/2qRS32YuWxiZ
	A6OnNiXMuA/QaycSXk/k0MjyyRDH7GvzANVZuT4Y3ItRUVZSItKD8B3Tv/BcTe61pkba
	YM2q+UFZ7hsD9rPPGX5B23/90t6ALzf2nA7dcJbgp/jYFvXqPm7N/ka4cd4XtgRdmOKc
	G3d4S3jmPmqr/QeucZLOU1xAgcfZrCrgChPupJdT8YgLgNisItffi82qMkscpBL4VnBY
	6XNw==
X-Gm-Message-State: AKwxyteXzpQasE3EIY5DJHCe8harYDNW1F4l2HmSE+40AIq8WYv2zWev
	oCOR7eYQQqgDF49k6Xxc9u1f29sBm8AuzaJgY9Y=
X-Google-Smtp-Source: AH8x226eQIsDConFqsh52byYa2VdmdtSXZNQr7Y2j+7CZY56AhYs/+DiUpJylJSLZtKAT5Qm/K2OS3EDqhDD3u9tP40=
X-Received: by 10.55.17.84 with SMTP id b81mr4205019qkh.185.1516723171208;
	Tue, 23 Jan 2018 07:59:31 -0800 (PST)
MIME-Version: 1.0
Received: by 10.55.103.7 with HTTP; Tue, 23 Jan 2018 07:59:30 -0800 (PST)
Received: by 10.55.103.7 with HTTP; Tue, 23 Jan 2018 07:59:30 -0800 (PST)
In-Reply-To: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
References: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
From: "Bradley C. Kuszmaul" <kuszmaul@gmail.com>
Date: Tue, 23 Jan 2018 10:59:30 -0500
Message-ID: <CAKSyJXeLWDU7c9gu_6gX5QVsze-yEERX60hn7inB5Q6D4rxU-Q@mail.gmail.com>
Subject: Re: Jittery text in successive PostScript sequences
To: Paul Wessel <pwessel@hawaii.edu>
Cc: bug-ghostscript@gnu.org
Content-Type: multipart/alternative; boundary="001a113b086ad7b27d056373a1ae"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400d:c0d::234
X-Mailman-Approved-At: Tue, 23 Jan 2018 12:01:59 -0500
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2018 15:59:35 -0000

--001a113b086ad7b27d056373a1ae
Content-Type: text/plain; charset="UTF-8"

It looks like even the straight lines and circles have jaggies, and your
jittering looks like it's just jaggies spread across the time domain.  I
don't think you can expect it to look good at such low resolution without
taking a lot more care about anti-aliasing. Can you increase the resolution?

Bradley C Kuszmaul - via snartphone

On Jan 22, 2018 10:06 PM, "Paul Wessel" <pwessel@hawaii.edu> wrote:

> Hi developers-
>
> GMT (gmt.soest.hawaii.edu) is using PostScript to make plots and one
> application builds an animation from sequences of PostScript plots
> converted to PNG with ghostscript (9.22) and then to MP4 with ffmpeg.  We
> have found a problem that may be a ghostscript bug, or alternatively we are
> doing something wrong.  When using a perspective view (i.e., using a matrix
> concatenation to simulate perspective), the resulting oblique text strings
> "jitter" when viewed as a movie.  For an example, see
> www.soest.hawaii.edu/pwessel/bug_200.mp4.  As the movie plays, you will
> see the INDIVIDUAL letters in the word HELL jitter relative to each other,
> despite being set via a single show command (here just a snippet of our
> code; setting currentpoint, font etc are omitted here)
>
> (HELL) dup dup stringwidth pop -2 div exch sh -2 div rmoveto show
>
> where sh is defined as
>
> /sh {gsave matrix setmatrix 0 0 moveto true charpath flattenpath pathbbox
> newpath 4 1 roll pop pop pop grestore} bind def
>
> [a complete PS example of a single frame can be found here:
> www.soest.hawaii.edu/pwessel/bug.ps.
>
> At first we suspected flattenpath but HELL (using Helvetica) has no curved
> segments (?).  We also tried to override the flattening with 0.2 setflat,
> but no difference.  We suspect some sort of roundoff but it affects the
> different letters in the word differently, and that is not under our
> control.  Could any of the operators above be subject to round-off that
> affect individual letters?
>
> Perhaps developers know where this may happen and if there is anything we
> can do on our side to remedy the problem.  As you can see there is no
> jittering for plotting a circle or lines.  The map frame annotations show
> the same jittering so it affects all text.
>
> Thanks for any insight!  We can provide more details, all individual PS
> files, etc upon request. FYI, we have tried both tif and jpg instead of png
> but no difference. We also made PDFs and used OS X Automator to build PNGs
> and made a movie using QuickTime Pro; same jittering (not sure if OS X High
> Sierra uses ghostscript in Preview etc).
>
> Paul Wessel
> Lead developer
> The Generic Mapping Tools
>
>

--001a113b086ad7b27d056373a1ae
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">It looks like even the straight lines and circles have ja=
ggies, and your jittering looks like it&#39;s just jaggies spread across th=
e time domain.=C2=A0 I don&#39;t think you can expect it to look good at su=
ch low resolution without taking a lot more care about anti-aliasing. Can y=
ou increase the resolution?<br><br><div data-smartmail=3D"gmail_signature">=
Bradley C Kuszmaul - via snartphone</div></div><div class=3D"gmail_extra"><=
br><div class=3D"gmail_quote">On Jan 22, 2018 10:06 PM, &quot;Paul Wessel&q=
uot; &lt;<a href=3D"mailto:pwessel@hawaii.edu" target=3D"_blank">pwessel@ha=
waii.edu</a>&gt; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex"><div style=3D"word-wrap:break-word;line-break:after-white-space">Hi dev=
elopers-<div><br></div><div>GMT (<a href=3D"http://gmt.soest.hawaii.edu" ta=
rget=3D"_blank">gmt.soest.hawaii.edu</a>) is using PostScript to make plots=
 and one application builds an animation from sequences of PostScript plots=
 converted to PNG with ghostscript (9.22) and then to MP4 with ffmpeg.=C2=
=A0 We have found a problem that may be a ghostscript bug, or alternatively=
 we are doing something wrong.=C2=A0 When using a perspective view (i.e., u=
sing a matrix concatenation to simulate perspective), the resulting oblique=
 text strings &quot;jitter&quot; when viewed as a movie.=C2=A0 For an examp=
le, see <a href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" target=
=3D"_blank">www.soest.hawaii.edu/pwessel/<wbr>bug_200.mp4</a>.=C2=A0 As the=
 movie plays, you will see the INDIVIDUAL letters in the word HELL jitter r=
elative to each other, despite being set via a single show command (here ju=
st a snippet of our code; setting currentpoint, font etc are omitted here)<=
/div><div><br></div><div><div>(HELL) dup dup stringwidth pop -2 div exch sh=
 -2 div rmoveto show</div></div><div><br></div><div>where sh is defined as<=
/div><div><br></div><div><div>/sh {gsave matrix setmatrix 0 0 moveto true c=
harpath flattenpath pathbbox newpath 4 1 roll pop pop pop grestore} bind de=
f</div></div><div><br></div><div>[a complete PS example of a single frame c=
an be found here:=C2=A0<a href=3D"http://www.soest.hawaii.edu/pwessel/bug.p=
s" target=3D"_blank">www.soest.hawaii.edu/<wbr>pwessel/bug.ps</a>.</div><di=
v><br></div><div>At first we suspected flattenpath but HELL (using Helvetic=
a) has no curved segments (?).=C2=A0 We also tried to override the flatteni=
ng with 0.2 setflat, but no difference.=C2=A0 We suspect some sort of round=
off but it affects the different letters in the word differently, and that =
is not under our control.=C2=A0 Could any of the operators above be subject=
 to round-off that affect individual letters?</div><div><br></div><div>Perh=
aps developers know where this may happen and if there is anything we can d=
o on our side to remedy the problem.=C2=A0 As you can see there is no jitte=
ring for plotting a circle or lines.=C2=A0 The map frame annotations show t=
he same jittering so it affects all text.</div><div><br></div><div>Thanks f=
or any insight!=C2=A0 We can provide more details, all individual PS files,=
 etc upon request. FYI, we have tried both tif and jpg instead of png but n=
o difference. We also made PDFs and used OS X Automator to build PNGs and m=
ade a movie using QuickTime Pro; same jittering (not sure if OS X High Sier=
ra uses ghostscript in Preview etc).</div><div><br></div><div>Paul Wessel</=
div><div>Lead developer</div><div>The Generic Mapping Tools</div><div><br><=
/div></div></blockquote></div></div>

--001a113b086ad7b27d056373a1ae--


From MAILER-DAEMON Tue Jan 23 15:52:24 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ee5YO-0002Sv-3N
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 15:52:24 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33117)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1ee5YL-0002Sc-NP
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 15:52:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1ee5YH-0007pH-Lg
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 15:52:21 -0500
Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:41483)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <pwessel@hawaii.edu>) id 1ee5YH-0007ow-Bn
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 15:52:17 -0500
Received: by mail-pf0-x234.google.com with SMTP id c6so1261350pfi.8
	for <bug-ghostscript@gnu.org>; Tue, 23 Jan 2018 12:52:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=hawaii-edu.20150623.gappssmtp.com; s=20150623;
	h=from:message-id:mime-version:subject:date:in-reply-to:cc:to
	:references; bh=5tKNA/LDOO5+aE8NHU36VqUk5/eEo9iEDTJleloY1+Y=;
	b=u+TAjY+NDtytVmCuoQ/O0Y7fGSUneCvACgeo3iWweZGBtRUnCgJpLYU0PKKFfX0zDM
	BmFjiAZmMSihSsuD+FJsZ19E4dn3aty30lLBCbBuMRQ80DAuJQjEAXTGA3pHPDn7wfqW
	vV7a41rEPiZVwh6+Ay32ese4QMFUpojRbyjQQT+EionloCAJ+WnHfxYfTAtDiGYHCS5K
	/pmhyI94yBl/L+6Xy4Av1pKwC/hhm5HodMlQ9+2AUIt6NVfPj58mXUEWd06VQ4b2SDBd
	/a/KprjgJ7T8wiRHdUVCKTuy1toBNYaKLYMWrGiZug7EaryJBGttl7FXwOB3JDIMCq3b
	twOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:from:message-id:mime-version:subject:date
	:in-reply-to:cc:to:references;
	bh=5tKNA/LDOO5+aE8NHU36VqUk5/eEo9iEDTJleloY1+Y=;
	b=Et/vdD/BykLT5SixZ5dOLsbx43VQCxcQHgv8eaQkHrVIcbM23pwKPIDXPgXhtqaR3m
	Y8DVsAIKo2kALYbamU5blyj8vFcYi/gJbrCI9MxyvV7JlaCbFklfFp/jkKJkH5zW4SOL
	7OZ2L3ye4vVH8jV5hWrqqxt9loHB06T+WdhyAXPm3vdCD9ATFQBcuolh56C2T8UMRn8o
	I48KLdOT3qalIfbF/5NnJYPLPjFPs4hUhY5uB3Y0v2soR/xZi1NP5L13pPW0Y9S9hhcy
	zICgBhEEZI/DlP46B6UQm7axapD8feP+ESCyXuQAiaC98QxFzIeujHHi136KfMyDJEns
	8Nhg==
X-Gm-Message-State: AKwxytc0ba3Ybg62YWhekV7ulZgGowmkUORS6Sn3nWL9f/hbrJt9SBYV
	WeYRW9GM8iSRf50cNWW/zqbXoA==
X-Google-Smtp-Source: AH8x225JzS3CRleALK5Rd7Ezobq7c+oDBr23IIKMddfbui67yxHUf9sQhAO/1sPmXlDe9ilcZMNJsw==
X-Received: by 10.98.32.151 with SMTP id m23mr11248270pfj.182.1516740736067;
	Tue, 23 Jan 2018 12:52:16 -0800 (PST)
Received: from macnut.soest.hawaii.edu (macnut.soest.hawaii.edu.
	[128.171.158.173])
	by smtp.gmail.com with ESMTPSA id v9sm5901865pfj.88.2018.01.23.12.52.13
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 23 Jan 2018 12:52:13 -0800 (PST)
From: Paul Wessel <pwessel@hawaii.edu>
Message-Id: <B6A521B0-E58D-4A64-9029-C98F878C4D44@hawaii.edu>
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_CED672D5-24E1-4260-918B-AC1E3DE2E9B5"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Subject: Re: Jittery text in successive PostScript sequences
Date: Tue, 23 Jan 2018 10:52:12 -1000
In-Reply-To: <CAKSyJXeLWDU7c9gu_6gX5QVsze-yEERX60hn7inB5Q6D4rxU-Q@mail.gmail.com>
Cc: Paul Wessel <pwessel@hawaii.edu>,
 bug-ghostscript@gnu.org
To: "Bradley C. Kuszmaul" <kuszmaul@gmail.com>
References: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
	<CAKSyJXeLWDU7c9gu_6gX5QVsze-yEERX60hn7inB5Q6D4rxU-Q@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.5.20)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400e:c00::234
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 23 Jan 2018 20:52:23 -0000


--Apple-Mail=_CED672D5-24E1-4260-918B-AC1E3DE2E9B5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Seems resolution independent; I've tried up to 4K.  Here is a 2000x1250 =
MP4 movie, just showing the text HELL. It is especially noticeable for =
angles 20-30.

www.soest.hawaii.edu/pwessel/bug.mp4 =
<http://www.soest.hawaii.edu/pwessel/bug_200.mp4>
> On Jan 23, 2018, at 5:59 AM, Bradley C. Kuszmaul <kuszmaul@gmail.com> =
wrote:
>=20
> It looks like even the straight lines and circles have jaggies, and =
your jittering looks like it's just jaggies spread across the time =
domain.  I don't think you can expect it to look good at such low =
resolution without taking a lot more care about anti-aliasing. Can you =
increase the resolution?
>=20
> Bradley C Kuszmaul - via snartphone
>=20
> On Jan 22, 2018 10:06 PM, "Paul Wessel" <pwessel@hawaii.edu =
<mailto:pwessel@hawaii.edu>> wrote:
> Hi developers-
>=20
> GMT (gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu/>) is using =
PostScript to make plots and one application builds an animation from =
sequences of PostScript plots converted to PNG with ghostscript (9.22) =
and then to MP4 with ffmpeg.  We have found a problem that may be a =
ghostscript bug, or alternatively we are doing something wrong.  When =
using a perspective view (i.e., using a matrix concatenation to simulate =
perspective), the resulting oblique text strings "jitter" when viewed as =
a movie.  For an example, see www.soest.hawaii.edu/pwessel/bug_200.mp4 =
<http://www.soest.hawaii.edu/pwessel/bug_200.mp4>.  As the movie plays, =
you will see the INDIVIDUAL letters in the word HELL jitter relative to =
each other, despite being set via a single show command (here just a =
snippet of our code; setting currentpoint, font etc are omitted here)
>=20
> (HELL) dup dup stringwidth pop -2 div exch sh -2 div rmoveto show
>=20
> where sh is defined as
>=20
> /sh {gsave matrix setmatrix 0 0 moveto true charpath flattenpath =
pathbbox newpath 4 1 roll pop pop pop grestore} bind def
>=20
> [a complete PS example of a single frame can be found here: =
www.soest.hawaii.edu/pwessel/bug.ps =
<http://www.soest.hawaii.edu/pwessel/bug.ps>.
>=20
> At first we suspected flattenpath but HELL (using Helvetica) has no =
curved segments (?).  We also tried to override the flattening with 0.2 =
setflat, but no difference.  We suspect some sort of roundoff but it =
affects the different letters in the word differently, and that is not =
under our control.  Could any of the operators above be subject to =
round-off that affect individual letters?
>=20
> Perhaps developers know where this may happen and if there is anything =
we can do on our side to remedy the problem.  As you can see there is no =
jittering for plotting a circle or lines.  The map frame annotations =
show the same jittering so it affects all text.
>=20
> Thanks for any insight!  We can provide more details, all individual =
PS files, etc upon request. FYI, we have tried both tif and jpg instead =
of png but no difference. We also made PDFs and used OS X Automator to =
build PNGs and made a movie using QuickTime Pro; same jittering (not =
sure if OS X High Sierra uses ghostscript in Preview etc).
>=20
> Paul Wessel
> Lead developer
> The Generic Mapping Tools
>=20


--Apple-Mail=_CED672D5-24E1-4260-918B-AC1E3DE2E9B5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Seems=
 resolution independent; I've tried up to 4K. &nbsp;Here is a 2000x1250 =
MP4 movie, just showing the text HELL. It is especially noticeable for =
angles 20-30.<br class=3D""><div><br class=3D""></div><div><div =
class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote =
class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; =
border-left-width: 1px; border-left-style: solid; border-left-color: =
rgb(204, 204, 204); padding-left: 1ex;"><div class=3D"" =
style=3D"word-wrap: break-word; line-break: after-white-space;"><div =
class=3D""><a href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" =
class=3D"">www.soest.hawaii.edu/pwessel/<wbr =
class=3D"">bug.mp4</a></div></div></blockquote></div></div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On Jan =
23, 2018, at 5:59 AM, Bradley C. Kuszmaul &lt;<a =
href=3D"mailto:kuszmaul@gmail.com" class=3D"">kuszmaul@gmail.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div =
dir=3D"auto" class=3D"">It looks like even the straight lines and =
circles have jaggies, and your jittering looks like it's just jaggies =
spread across the time domain.&nbsp; I don't think you can expect it to =
look good at such low resolution without taking a lot more care about =
anti-aliasing. Can you increase the resolution?<br class=3D""><br =
class=3D""><div data-smartmail=3D"gmail_signature" class=3D"">Bradley C =
Kuszmaul - via snartphone</div></div><div class=3D"gmail_extra"><br =
class=3D""><div class=3D"gmail_quote">On Jan 22, 2018 10:06 PM, "Paul =
Wessel" &lt;<a href=3D"mailto:pwessel@hawaii.edu" target=3D"_blank" =
class=3D"">pwessel@hawaii.edu</a>&gt; wrote:<br type=3D"attribution" =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word;line-break:after-white-space" class=3D"">Hi =
developers-<div class=3D""><br class=3D""></div><div class=3D"">GMT (<a =
href=3D"http://gmt.soest.hawaii.edu/" target=3D"_blank" =
class=3D"">gmt.soest.hawaii.edu</a>) is using PostScript to make plots =
and one application builds an animation from sequences of PostScript =
plots converted to PNG with ghostscript (9.22) and then to MP4 with =
ffmpeg.&nbsp; We have found a problem that may be a ghostscript bug, or =
alternatively we are doing something wrong.&nbsp; When using a =
perspective view (i.e., using a matrix concatenation to simulate =
perspective), the resulting oblique text strings "jitter" when viewed as =
a movie.&nbsp; For an example, see <a =
href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" target=3D"_blank"=
 class=3D"">www.soest.hawaii.edu/pwessel/<wbr =
class=3D"">bug_200.mp4</a>.&nbsp; As the movie plays, you will see the =
INDIVIDUAL letters in the word HELL jitter relative to each other, =
despite being set via a single show command (here just a snippet of our =
code; setting currentpoint, font etc are omitted here)</div><div =
class=3D""><br class=3D""></div><div class=3D""><div class=3D"">(HELL) =
dup dup stringwidth pop -2 div exch sh -2 div rmoveto =
show</div></div><div class=3D""><br class=3D""></div><div class=3D"">where=
 sh is defined as</div><div class=3D""><br class=3D""></div><div =
class=3D""><div class=3D"">/sh {gsave matrix setmatrix 0 0 moveto true =
charpath flattenpath pathbbox newpath 4 1 roll pop pop pop grestore} =
bind def</div></div><div class=3D""><br class=3D""></div><div =
class=3D"">[a complete PS example of a single frame can be found =
here:&nbsp;<a href=3D"http://www.soest.hawaii.edu/pwessel/bug.ps" =
target=3D"_blank" class=3D"">www.soest.hawaii.edu/<wbr =
class=3D"">pwessel/bug.ps</a>.</div><div class=3D""><br =
class=3D""></div><div class=3D"">At first we suspected flattenpath but =
HELL (using Helvetica) has no curved segments (?).&nbsp; We also tried =
to override the flattening with 0.2 setflat, but no difference.&nbsp; We =
suspect some sort of roundoff but it affects the different letters in =
the word differently, and that is not under our control.&nbsp; Could any =
of the operators above be subject to round-off that affect individual =
letters?</div><div class=3D""><br class=3D""></div><div class=3D"">Perhaps=
 developers know where this may happen and if there is anything we can =
do on our side to remedy the problem.&nbsp; As you can see there is no =
jittering for plotting a circle or lines.&nbsp; The map frame =
annotations show the same jittering so it affects all text.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Thanks for any =
insight!&nbsp; We can provide more details, all individual PS files, etc =
upon request. FYI, we have tried both tif and jpg instead of png but no =
difference. We also made PDFs and used OS X Automator to build PNGs and =
made a movie using QuickTime Pro; same jittering (not sure if OS X High =
Sierra uses ghostscript in Preview etc).</div><div class=3D""><br =
class=3D""></div><div class=3D"">Paul Wessel</div><div class=3D"">Lead =
developer</div><div class=3D"">The Generic Mapping Tools</div><div =
class=3D""><br class=3D""></div></div></blockquote></div></div>
</div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_CED672D5-24E1-4260-918B-AC1E3DE2E9B5--


From MAILER-DAEMON Tue Jan 23 19:03:02 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ee8Ws-00026M-1j
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:03:02 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33948)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kuszmaul@gmail.com>) id 1ee8Vm-0001w7-CC
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:03:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kuszmaul@gmail.com>) id 1ee8Ui-0007G4-Aq
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:01:54 -0500
Received: from mail-qt0-x236.google.com ([2607:f8b0:400d:c0d::236]:44862)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <kuszmaul@gmail.com>) id 1ee8Ui-0007Ew-1J
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:00:48 -0500
Received: by mail-qt0-x236.google.com with SMTP id l20so6064474qtj.11
	for <bug-ghostscript@gnu.org>; Tue, 23 Jan 2018 16:00:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=hPDTVYf1034Tn2dkbozTDG44zcg8uwv0NT3kRbf/iHw=;
	b=u8veSzpHH3KK3QvXMUPPVSugjEyLHfMgfnEX+TKeKbwDMQN+FNnZNoOq2Wzt9HEBMq
	frygQiulc/NZ+8cql3KUnOg0MqxMQ1UFORn9GgK+1g5cc8hoYRRwpF8jrrxZgsKTztYk
	6SKA2xfrGOOqWszXtt+OUJ70tyM5RboACLn9oFRs5rJp5YMlMMT7SJnEYEJKdKYYXdg4
	N/Ec9CO0pIc8vIiR/TMrPobJLrEGBYctxjuyrp7tWIc5maXZyBuOz7DPqrOu1kuKLxCy
	CtxQAiFcBY79lfGpuq4Z2vBDtJg4R36evfoYHapwfh4HYqBQ50Zc48G7PuNcvTIaWOqp
	umbA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=hPDTVYf1034Tn2dkbozTDG44zcg8uwv0NT3kRbf/iHw=;
	b=UVWE3rbF1CeSaiMs2A4thi4mvihOn8ty1CgB5+Aa3mGTkqsxEK5h5q7qhTb3HCWryA
	wnywiC0wJXs345iDnH/YxfY+qT4s3cTC7G1sh7lqDOwqZIuTeSK4L1VG4ZCUD9Ekk16P
	YcyPPEfFGEkpQi9YIiPO/yfcfjll3CPIz5KPkUcEtJoaQUyNLCDJRNmaPeY/AsHxRzyS
	QGVH+EAdqckmgX/R5EvY1sIzSKtIl7Pzc2mSgjZD7QQf8qkPZf0vqMfs5FkTvrhV4bsd
	ccsMZAmQgnHw+duzM6dnqwqZ/SD5AkgECC5GyZCO4X75WXbIlMCAXfk/28dfsFPRps2c
	OhNg==
X-Gm-Message-State: AKwxytdGZ7z0UdhxMxVlY5CUvnLRPhEta5zz3PGW7J4bYdwJaM3Hbrkd
	grVAZKuOdzv/J+HX6R0pevIqxeEjjVlt0O8Ha4k=
X-Google-Smtp-Source: AH8x225yRitmUc+7wVrEIWtJtwMmSQeMANRQVJilGSXyFs4o+LTiAne+Le7TioOhFrOfPqGoYzjY4FC4mxtC6VelYBE=
X-Received: by 10.55.174.197 with SMTP id x188mr5951246qke.129.1516752046819; 
	Tue, 23 Jan 2018 16:00:46 -0800 (PST)
MIME-Version: 1.0
Received: by 10.55.103.7 with HTTP; Tue, 23 Jan 2018 16:00:26 -0800 (PST)
In-Reply-To: <B6A521B0-E58D-4A64-9029-C98F878C4D44@hawaii.edu>
References: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
	<CAKSyJXeLWDU7c9gu_6gX5QVsze-yEERX60hn7inB5Q6D4rxU-Q@mail.gmail.com>
	<B6A521B0-E58D-4A64-9029-C98F878C4D44@hawaii.edu>
From: "Bradley C. Kuszmaul" <kuszmaul@gmail.com>
Date: Tue, 23 Jan 2018 19:00:26 -0500
Message-ID: <CAKSyJXejRRuRqRmdDgDNS=uPj0xZ1j6zP2etTZ27iVA9V58RNQ@mail.gmail.com>
Subject: Re: Jittery text in successive PostScript sequences
To: Paul Wessel <pwessel@hawaii.edu>
Cc: bug-ghostscript@gnu.org
Content-Type: multipart/alternative; boundary="94eb2c06dedef68ef505637a5a24"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400d:c0d::236
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Jan 2018 00:03:00 -0000

--94eb2c06dedef68ef505637a5a24
Content-Type: text/plain; charset="UTF-8"

This video is only 800x500, and the jitter's amplitude appears to be one
pixel.

On Tue, Jan 23, 2018 at 3:52 PM, Paul Wessel <pwessel@hawaii.edu> wrote:

> Seems resolution independent; I've tried up to 4K.  Here is a 2000x1250
> MP4 movie, just showing the text HELL. It is especially noticeable for
> angles 20-30.
>
> www.soest.hawaii.edu/pwessel/bug.mp4
>> <http://www.soest.hawaii.edu/pwessel/bug_200.mp4>
>>
>
> On Jan 23, 2018, at 5:59 AM, Bradley C. Kuszmaul <kuszmaul@gmail.com>
> wrote:
>
> It looks like even the straight lines and circles have jaggies, and your
> jittering looks like it's just jaggies spread across the time domain.  I
> don't think you can expect it to look good at such low resolution without
> taking a lot more care about anti-aliasing. Can you increase the resolution?
>
> Bradley C Kuszmaul - via snartphone
>
> On Jan 22, 2018 10:06 PM, "Paul Wessel" <pwessel@hawaii.edu> wrote:
>
>> Hi developers-
>>
>> GMT (gmt.soest.hawaii.edu) is using PostScript to make plots and one
>> application builds an animation from sequences of PostScript plots
>> converted to PNG with ghostscript (9.22) and then to MP4 with ffmpeg.  We
>> have found a problem that may be a ghostscript bug, or alternatively we are
>> doing something wrong.  When using a perspective view (i.e., using a matrix
>> concatenation to simulate perspective), the resulting oblique text strings
>> "jitter" when viewed as a movie.  For an example, see
>> www.soest.hawaii.edu/pwessel/bug_200.mp4.  As the movie plays, you will
>> see the INDIVIDUAL letters in the word HELL jitter relative to each other,
>> despite being set via a single show command (here just a snippet of our
>> code; setting currentpoint, font etc are omitted here)
>>
>> (HELL) dup dup stringwidth pop -2 div exch sh -2 div rmoveto show
>>
>> where sh is defined as
>>
>> /sh {gsave matrix setmatrix 0 0 moveto true charpath flattenpath pathbbox
>> newpath 4 1 roll pop pop pop grestore} bind def
>>
>> [a complete PS example of a single frame can be found here:
>> www.soest.hawaii.edu/pwessel/bug.ps.
>>
>> At first we suspected flattenpath but HELL (using Helvetica) has no
>> curved segments (?).  We also tried to override the flattening with 0.2
>> setflat, but no difference.  We suspect some sort of roundoff but it
>> affects the different letters in the word differently, and that is not
>> under our control.  Could any of the operators above be subject to
>> round-off that affect individual letters?
>>
>> Perhaps developers know where this may happen and if there is anything we
>> can do on our side to remedy the problem.  As you can see there is no
>> jittering for plotting a circle or lines.  The map frame annotations show
>> the same jittering so it affects all text.
>>
>> Thanks for any insight!  We can provide more details, all individual PS
>> files, etc upon request. FYI, we have tried both tif and jpg instead of png
>> but no difference. We also made PDFs and used OS X Automator to build PNGs
>> and made a movie using QuickTime Pro; same jittering (not sure if OS X High
>> Sierra uses ghostscript in Preview etc).
>>
>> Paul Wessel
>> Lead developer
>> The Generic Mapping Tools
>>
>>
>

--94eb2c06dedef68ef505637a5a24
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">This video is only 800x500, and the jitter&#39;s amplitude=
 appears to be one pixel.</div><div class=3D"gmail_extra"><br><div class=3D=
"gmail_quote">On Tue, Jan 23, 2018 at 3:52 PM, Paul Wessel <span dir=3D"ltr=
">&lt;<a href=3D"mailto:pwessel@hawaii.edu" target=3D"_blank">pwessel@hawai=
i.edu</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D=
"word-wrap:break-word;line-break:after-white-space">Seems resolution indepe=
ndent; I&#39;ve tried up to 4K.=C2=A0 Here is a 2000x1250 MP4 movie, just s=
howing the text HELL. It is especially noticeable for angles 20-30.<br><div=
><br></div><div><div class=3D"gmail_extra"><div class=3D"gmail_quote"><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-=
width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);paddin=
g-left:1ex"><div style=3D"word-wrap:break-word;line-break:after-white-space=
"><div><a href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" target=
=3D"_blank">www.soest.hawaii.edu/pwessel/b<wbr>ug.mp4</a></div></div></bloc=
kquote></div></div><br><blockquote type=3D"cite"><span class=3D""><div>On J=
an 23, 2018, at 5:59 AM, Bradley C. Kuszmaul &lt;<a href=3D"mailto:kuszmaul=
@gmail.com" target=3D"_blank">kuszmaul@gmail.com</a>&gt; wrote:</div><br cl=
ass=3D"m_3719001049117885825Apple-interchange-newline"></span><div><div cla=
ss=3D"h5"><div><div dir=3D"auto">It looks like even the straight lines and =
circles have jaggies, and your jittering looks like it&#39;s just jaggies s=
pread across the time domain.=C2=A0 I don&#39;t think you can expect it to =
look good at such low resolution without taking a lot more care about anti-=
aliasing. Can you increase the resolution?<br><br><div data-smartmail=3D"gm=
ail_signature">Bradley C Kuszmaul - via snartphone</div></div><div class=3D=
"gmail_extra"><br><div class=3D"gmail_quote">On Jan 22, 2018 10:06 PM, &quo=
t;Paul Wessel&quot; &lt;<a href=3D"mailto:pwessel@hawaii.edu" target=3D"_bl=
ank">pwessel@hawaii.edu</a>&gt; wrote:<br type=3D"attribution"><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid=
;padding-left:1ex"><div style=3D"word-wrap:break-word;line-break:after-whit=
e-space">Hi developers-<div><br></div><div>GMT (<a href=3D"http://gmt.soest=
.hawaii.edu/" target=3D"_blank">gmt.soest.hawaii.edu</a>) is using PostScri=
pt to make plots and one application builds an animation from sequences of =
PostScript plots converted to PNG with ghostscript (9.22) and then to MP4 w=
ith ffmpeg.=C2=A0 We have found a problem that may be a ghostscript bug, or=
 alternatively we are doing something wrong.=C2=A0 When using a perspective=
 view (i.e., using a matrix concatenation to simulate perspective), the res=
ulting oblique text strings &quot;jitter&quot; when viewed as a movie.=C2=
=A0 For an example, see <a href=3D"http://www.soest.hawaii.edu/pwessel/bug_=
200.mp4" target=3D"_blank">www.soest.hawaii.edu/pwessel/b<wbr>ug_200.mp4</a=
>.=C2=A0 As the movie plays, you will see the INDIVIDUAL letters in the wor=
d HELL jitter relative to each other, despite being set via a single show c=
ommand (here just a snippet of our code; setting currentpoint, font etc are=
 omitted here)</div><div><br></div><div><div>(HELL) dup dup stringwidth pop=
 -2 div exch sh -2 div rmoveto show</div></div><div><br></div><div>where sh=
 is defined as</div><div><br></div><div><div>/sh {gsave matrix setmatrix 0 =
0 moveto true charpath flattenpath pathbbox newpath 4 1 roll pop pop pop gr=
estore} bind def</div></div><div><br></div><div>[a complete PS example of a=
 single frame can be found here:=C2=A0<a href=3D"http://www.soest.hawaii.ed=
u/pwessel/bug.ps" target=3D"_blank">www.soest.hawaii.edu/pwe<wbr>ssel/bug.p=
s</a>.</div><div><br></div><div>At first we suspected flattenpath but HELL =
(using Helvetica) has no curved segments (?).=C2=A0 We also tried to overri=
de the flattening with 0.2 setflat, but no difference.=C2=A0 We suspect som=
e sort of roundoff but it affects the different letters in the word differe=
ntly, and that is not under our control.=C2=A0 Could any of the operators a=
bove be subject to round-off that affect individual letters?</div><div><br>=
</div><div>Perhaps developers know where this may happen and if there is an=
ything we can do on our side to remedy the problem.=C2=A0 As you can see th=
ere is no jittering for plotting a circle or lines.=C2=A0 The map frame ann=
otations show the same jittering so it affects all text.</div><div><br></di=
v><div>Thanks for any insight!=C2=A0 We can provide more details, all indiv=
idual PS files, etc upon request. FYI, we have tried both tif and jpg inste=
ad of png but no difference. We also made PDFs and used OS X Automator to b=
uild PNGs and made a movie using QuickTime Pro; same jittering (not sure if=
 OS X High Sierra uses ghostscript in Preview etc).</div><div><br></div><di=
v>Paul Wessel</div><div>Lead developer</div><div>The Generic Mapping Tools<=
/div><div><br></div></div></blockquote></div></div>
</div></div></div></blockquote></div><br></div></blockquote></div><br></div=
>

--94eb2c06dedef68ef505637a5a24--


From MAILER-DAEMON Tue Jan 23 19:54:44 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ee9Ku-00005C-Ko
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:54:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35145)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1ee9KQ-0008Ox-Ja
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:54:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pwessel@hawaii.edu>) id 1ee9JM-0005Xb-J3
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:54:14 -0500
Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:44058)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <pwessel@hawaii.edu>) id 1ee9JM-0005WF-5L
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:53:08 -0500
Received: by mail-pg0-x22f.google.com with SMTP id m20so1497332pgc.11
	for <bug-ghostscript@gnu.org>; Tue, 23 Jan 2018 16:53:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=hawaii-edu.20150623.gappssmtp.com; s=20150623;
	h=from:message-id:mime-version:subject:date:in-reply-to:cc:to
	:references; bh=AMfwDHKnma80WS5g21izBHFaEmDOk3NxWuf2a7MKnYg=;
	b=Ahde4OJQE8/gyFjBVAJU13PodgCmgYcJB0Ib+bu/ej8xp9BtW1NlP4/Pe9RiqvQQ5i
	oUbUn1q7LfqHrhN11rnbqXWpztJsQQrXepC8SIzE4ctjNWIxJ4Hhwk6KaHkCl1W42OZU
	V/hgt4VSZKqJI3TaV2vRl3vlkN3FjkmseLaN5QOk71PzRmZ73ZFmBkoJaaWMLfaYBFEP
	ADYKGx4te7viatASFEywJZk2YQ5KKQJ7y1/G/VCkcQjPDKvWhZQNzEdqc5NAzSryezlh
	x0I77J2i5ebzf8QbKS7wLgI+hIjUozRaxbe8dvy9b4e63/AvQa1gkPx2VdtYT7vuZF24
	ZpFQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:from:message-id:mime-version:subject:date
	:in-reply-to:cc:to:references;
	bh=AMfwDHKnma80WS5g21izBHFaEmDOk3NxWuf2a7MKnYg=;
	b=d5KOvWXwMUCjggYlEL4ysSY4G9tzPU2e1MY3IZvM54vsMjXjgOwg1vBWqHUZyjGpWZ
	89QcHYkqDK/638jY6ANG+w9Aa9pGGsTGmGmy25m38lQ+QHpW2oMt+MxhwRRp5euw2TZA
	S2ctKC/bgrdD35JZsDsS8UJ/NlJO1RZUNDDEzb1CWrICUXP7jeitzc4ZTmY33/PS3ds1
	8AF5jB1OguU/azDGJkSGtQpahO1oiQgxQdsQyWkzscBkt/w+v6DUhaMpQ+pHekNQyu/P
	P5sg36i0rVTatrszD7CFEpSNAZhWnbHjjV31QdFa+ZSuW9HiFkVehbWjiryTNFwztkm5
	FYjw==
X-Gm-Message-State: AKwxytenIO0qR2TbmHahfLQsTWMlWmco+QEfgVLWqSaiByyUep8yEEuV
	/EVoEWSOlGRh22pPhCDwF6AoUQ==
X-Google-Smtp-Source: AH8x227+k+fip3a5zTs3n+fcCUtSACboRyV3x3XxiwmLRacTGM8KsbhSyMwEL4EouOVOyToksWcVfw==
X-Received: by 10.99.120.8 with SMTP id t8mr1074902pgc.371.1516755186699;
	Tue, 23 Jan 2018 16:53:06 -0800 (PST)
Received: from ?IPv6:2605:e000:d742:3a00:4578:f571:124f:b741?
	([2605:e000:d742:3a00:4578:f571:124f:b741])
	by smtp.gmail.com with ESMTPSA id p64sm567753pga.55.2018.01.23.16.53.03
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 23 Jan 2018 16:53:04 -0800 (PST)
From: Paul Wessel <pwessel@hawaii.edu>
Message-Id: <668C6E5A-3BB8-4D14-BA41-5990B5D5F3F0@hawaii.edu>
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_E4E6C792-E6E8-4C65-A75B-6C585E5170DD"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Subject: Re: Jittery text in successive PostScript sequences
Date: Tue, 23 Jan 2018 14:53:02 -1000
In-Reply-To: <CAKSyJXejRRuRqRmdDgDNS=uPj0xZ1j6zP2etTZ27iVA9V58RNQ@mail.gmail.com>
Cc: Paul Wessel <pwessel@hawaii.edu>,
 bug-ghostscript@gnu.org
To: "Bradley C. Kuszmaul" <kuszmaul@gmail.com>
References: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
	<CAKSyJXeLWDU7c9gu_6gX5QVsze-yEERX60hn7inB5Q6D4rxU-Q@mail.gmail.com>
	<B6A521B0-E58D-4A64-9029-C98F878C4D44@hawaii.edu>
	<CAKSyJXejRRuRqRmdDgDNS=uPj0xZ1j6zP2etTZ27iVA9V58RNQ@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.5.20)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400e:c05::22f
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Jan 2018 00:54:43 -0000


--Apple-Mail=_E4E6C792-E6E8-4C65-A75B-6C585E5170DD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Quicktime says it is 2000x1250 and that is indeed the frame PNG =
dimensions - perhaps you are viewing it in a browser which shows it to =
be smaller.  in my browser it looks much smaller as well.
Anyway, we are trying to quantify if indeed it is -/+1 pixel which makes =
sense in terms of rounding.  I thought the anti-aliasing settings would =
add the gray to nearby pixels to simulate the sub-pixeling but that does =
not seem to happen on the projected tex [it does happen on other text =
that we have examined].

Paul


> On Jan 23, 2018, at 2:00 PM, Bradley C. Kuszmaul <kuszmaul@gmail.com> =
wrote:
>=20
> This video is only 800x500, and the jitter's amplitude appears to be =
one pixel.
>=20
> On Tue, Jan 23, 2018 at 3:52 PM, Paul Wessel <pwessel@hawaii.edu =
<mailto:pwessel@hawaii.edu>> wrote:
> Seems resolution independent; I've tried up to 4K.  Here is a =
2000x1250 MP4 movie, just showing the text HELL. It is especially =
noticeable for angles 20-30.
>=20
> www.soest.hawaii.edu/pwessel/bug.mp4 =
<http://www.soest.hawaii.edu/pwessel/bug_200.mp4>
>> On Jan 23, 2018, at 5:59 AM, Bradley C. Kuszmaul <kuszmaul@gmail.com =
<mailto:kuszmaul@gmail.com>> wrote:
>>=20
>> It looks like even the straight lines and circles have jaggies, and =
your jittering looks like it's just jaggies spread across the time =
domain.  I don't think you can expect it to look good at such low =
resolution without taking a lot more care about anti-aliasing. Can you =
increase the resolution?
>>=20
>> Bradley C Kuszmaul - via snartphone
>>=20
>> On Jan 22, 2018 10:06 PM, "Paul Wessel" <pwessel@hawaii.edu =
<mailto:pwessel@hawaii.edu>> wrote:
>> Hi developers-
>>=20
>> GMT (gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu/>) is using =
PostScript to make plots and one application builds an animation from =
sequences of PostScript plots converted to PNG with ghostscript (9.22) =
and then to MP4 with ffmpeg.  We have found a problem that may be a =
ghostscript bug, or alternatively we are doing something wrong.  When =
using a perspective view (i.e., using a matrix concatenation to simulate =
perspective), the resulting oblique text strings "jitter" when viewed as =
a movie.  For an example, see www.soest.hawaii.edu/pwessel/bug_200.mp4 =
<http://www.soest.hawaii.edu/pwessel/bug_200.mp4>.  As the movie plays, =
you will see the INDIVIDUAL letters in the word HELL jitter relative to =
each other, despite being set via a single show command (here just a =
snippet of our code; setting currentpoint, font etc are omitted here)
>>=20
>> (HELL) dup dup stringwidth pop -2 div exch sh -2 div rmoveto show
>>=20
>> where sh is defined as
>>=20
>> /sh {gsave matrix setmatrix 0 0 moveto true charpath flattenpath =
pathbbox newpath 4 1 roll pop pop pop grestore} bind def
>>=20
>> [a complete PS example of a single frame can be found here: =
www.soest.hawaii.edu/pwessel/bug.ps =
<http://www.soest.hawaii.edu/pwessel/bug.ps>.
>>=20
>> At first we suspected flattenpath but HELL (using Helvetica) has no =
curved segments (?).  We also tried to override the flattening with 0.2 =
setflat, but no difference.  We suspect some sort of roundoff but it =
affects the different letters in the word differently, and that is not =
under our control.  Could any of the operators above be subject to =
round-off that affect individual letters?
>>=20
>> Perhaps developers know where this may happen and if there is =
anything we can do on our side to remedy the problem.  As you can see =
there is no jittering for plotting a circle or lines.  The map frame =
annotations show the same jittering so it affects all text.
>>=20
>> Thanks for any insight!  We can provide more details, all individual =
PS files, etc upon request. FYI, we have tried both tif and jpg instead =
of png but no difference. We also made PDFs and used OS X Automator to =
build PNGs and made a movie using QuickTime Pro; same jittering (not =
sure if OS X High Sierra uses ghostscript in Preview etc).
>>=20
>> Paul Wessel
>> Lead developer
>> The Generic Mapping Tools
>>=20
>=20
>=20


--Apple-Mail=_E4E6C792-E6E8-4C65-A75B-6C585E5170DD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" =
class=3D"">Quicktime says it is 2000x1250 and that is indeed the frame =
PNG dimensions - perhaps you are viewing it in a browser which shows it =
to be smaller. &nbsp;in my browser it looks much smaller as well.<div =
class=3D"">Anyway, we are trying to quantify if indeed it is -/+1 pixel =
which makes sense in terms of rounding. &nbsp;I thought the =
anti-aliasing settings would add the gray to nearby pixels to simulate =
the sub-pixeling but that does not seem to happen on the projected tex =
[it does happen on other text that we have examined].</div><div =
class=3D""><br class=3D""></div><div class=3D"">Paul</div><div =
class=3D""><br class=3D""><div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D"">On Jan 23, 2018, at 2:00 PM, Bradley C. =
Kuszmaul &lt;<a href=3D"mailto:kuszmaul@gmail.com" =
class=3D"">kuszmaul@gmail.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">This video is only 800x500, and the jitter's amplitude =
appears to be one pixel.</div><div class=3D"gmail_extra"><br =
class=3D""><div class=3D"gmail_quote">On Tue, Jan 23, 2018 at 3:52 PM, =
Paul Wessel <span dir=3D"ltr" class=3D"">&lt;<a =
href=3D"mailto:pwessel@hawaii.edu" target=3D"_blank" =
class=3D"">pwessel@hawaii.edu</a>&gt;</span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word;line-break:after-white-space" =
class=3D"">Seems resolution independent; I've tried up to 4K.&nbsp; Here =
is a 2000x1250 MP4 movie, just showing the text HELL. It is especially =
noticeable for angles 20-30.<br class=3D""><div class=3D""><br =
class=3D""></div><div class=3D""><div class=3D"gmail_extra"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px =
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(=
204,204,204);padding-left:1ex"><div =
style=3D"word-wrap:break-word;line-break:after-white-space" =
class=3D""><div class=3D""><a =
href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" target=3D"_blank"=
 class=3D"">www.soest.hawaii.edu/pwessel/b<wbr =
class=3D"">ug.mp4</a></div></div></blockquote></div></div><br =
class=3D""><blockquote type=3D"cite" class=3D""><span class=3D""><div =
class=3D"">On Jan 23, 2018, at 5:59 AM, Bradley C. Kuszmaul &lt;<a =
href=3D"mailto:kuszmaul@gmail.com" target=3D"_blank" =
class=3D"">kuszmaul@gmail.com</a>&gt; wrote:</div><br =
class=3D"m_3719001049117885825Apple-interchange-newline"></span><div =
class=3D""><div class=3D"h5"><div class=3D""><div dir=3D"auto" =
class=3D"">It looks like even the straight lines and circles have =
jaggies, and your jittering looks like it's just jaggies spread across =
the time domain.&nbsp; I don't think you can expect it to look good at =
such low resolution without taking a lot more care about anti-aliasing. =
Can you increase the resolution?<br class=3D""><br class=3D""><div =
data-smartmail=3D"gmail_signature" class=3D"">Bradley C Kuszmaul - via =
snartphone</div></div><div class=3D"gmail_extra"><br class=3D""><div =
class=3D"gmail_quote">On Jan 22, 2018 10:06 PM, "Paul Wessel" &lt;<a =
href=3D"mailto:pwessel@hawaii.edu" target=3D"_blank" =
class=3D"">pwessel@hawaii.edu</a>&gt; wrote:<br type=3D"attribution" =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word;line-break:after-white-space" class=3D"">Hi =
developers-<div class=3D""><br class=3D""></div><div class=3D"">GMT (<a =
href=3D"http://gmt.soest.hawaii.edu/" target=3D"_blank" =
class=3D"">gmt.soest.hawaii.edu</a>) is using PostScript to make plots =
and one application builds an animation from sequences of PostScript =
plots converted to PNG with ghostscript (9.22) and then to MP4 with =
ffmpeg.&nbsp; We have found a problem that may be a ghostscript bug, or =
alternatively we are doing something wrong.&nbsp; When using a =
perspective view (i.e., using a matrix concatenation to simulate =
perspective), the resulting oblique text strings "jitter" when viewed as =
a movie.&nbsp; For an example, see <a =
href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" target=3D"_blank"=
 class=3D"">www.soest.hawaii.edu/pwessel/b<wbr =
class=3D"">ug_200.mp4</a>.&nbsp; As the movie plays, you will see the =
INDIVIDUAL letters in the word HELL jitter relative to each other, =
despite being set via a single show command (here just a snippet of our =
code; setting currentpoint, font etc are omitted here)</div><div =
class=3D""><br class=3D""></div><div class=3D""><div class=3D"">(HELL) =
dup dup stringwidth pop -2 div exch sh -2 div rmoveto =
show</div></div><div class=3D""><br class=3D""></div><div class=3D"">where=
 sh is defined as</div><div class=3D""><br class=3D""></div><div =
class=3D""><div class=3D"">/sh {gsave matrix setmatrix 0 0 moveto true =
charpath flattenpath pathbbox newpath 4 1 roll pop pop pop grestore} =
bind def</div></div><div class=3D""><br class=3D""></div><div =
class=3D"">[a complete PS example of a single frame can be found =
here:&nbsp;<a href=3D"http://www.soest.hawaii.edu/pwessel/bug.ps" =
target=3D"_blank" class=3D"">www.soest.hawaii.edu/pwe<wbr =
class=3D"">ssel/bug.ps</a>.</div><div class=3D""><br class=3D""></div><div=
 class=3D"">At first we suspected flattenpath but HELL (using Helvetica) =
has no curved segments (?).&nbsp; We also tried to override the =
flattening with 0.2 setflat, but no difference.&nbsp; We suspect some =
sort of roundoff but it affects the different letters in the word =
differently, and that is not under our control.&nbsp; Could any of the =
operators above be subject to round-off that affect individual =
letters?</div><div class=3D""><br class=3D""></div><div class=3D"">Perhaps=
 developers know where this may happen and if there is anything we can =
do on our side to remedy the problem.&nbsp; As you can see there is no =
jittering for plotting a circle or lines.&nbsp; The map frame =
annotations show the same jittering so it affects all text.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Thanks for any =
insight!&nbsp; We can provide more details, all individual PS files, etc =
upon request. FYI, we have tried both tif and jpg instead of png but no =
difference. We also made PDFs and used OS X Automator to build PNGs and =
made a movie using QuickTime Pro; same jittering (not sure if OS X High =
Sierra uses ghostscript in Preview etc).</div><div class=3D""><br =
class=3D""></div><div class=3D"">Paul Wessel</div><div class=3D"">Lead =
developer</div><div class=3D"">The Generic Mapping Tools</div><div =
class=3D""><br class=3D""></div></div></blockquote></div></div>
</div></div></div></blockquote></div><br =
class=3D""></div></blockquote></div><br class=3D""></div>
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_E4E6C792-E6E8-4C65-A75B-6C585E5170DD--


From MAILER-DAEMON Tue Jan 23 19:58:57 2018
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ee9Oz-0000nQ-3t
	for mharc-bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:58:57 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44152)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kuszmaul@gmail.com>) id 1ee9OC-0000fX-9q
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:58:55 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kuszmaul@gmail.com>) id 1ee9Ni-0004f8-CR
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:58:08 -0500
Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:41101)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <kuszmaul@gmail.com>) id 1ee9Nh-0004eJ-TZ
	for bug-ghostscript@gnu.org; Tue, 23 Jan 2018 19:57:38 -0500
Received: by mail-qt0-x232.google.com with SMTP id i1so6356126qtj.8
	for <bug-ghostscript@gnu.org>; Tue, 23 Jan 2018 16:57:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=lUjNHSnxWl6E7wbroiKuIiEt+EVxZ+an5UYveLb8sNA=;
	b=nSlGaqgmMA8C+GP1e3BZQ++0RBpDe9jATP2x7fI+zCDwodpn62eJtCdhmRozsxTc7i
	IY5vYqNmsci2DL2bpLp8aWPBrlSReFm6iX4u/gOl7XJdua6AR7zCkpqTyzwpmAszEF59
	1ZZsEpzoLTTolphZtkF4pArdbIigK/k1mhHnEmwTdoM82UXd1SGFz0dGA4oNEjXbkiHj
	KLuWWTO62ALyNJrTYZf+jxdW/LkC8czvf6/8utuN/rL0tm36Xw89vkzjXsObah5yYuu7
	L0OmzPf/AJ1EKI9B+ZAefaHrJzFd6jY5C2He/WfVHwGA0VlAvMvbsRz3CoW2rgP5eTAY
	HYyg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=lUjNHSnxWl6E7wbroiKuIiEt+EVxZ+an5UYveLb8sNA=;
	b=sC0hsupbdyvX2bI5YsjRkcZF5OANnWohNKPxXtG2aKRh74RkMIUfb/zOx9StSSe3dh
	d3NoCRqt/3VTQZwd5aIEU8zcUW7eGaaiRogcMOKOvWzNkmBVrKQI7zTklnRh98L8thac
	NQfJSZV7kDHcG/tA5CR4sRqLWrHFUyT1jiBnlcwB9kL9n5F1lrXbz+bp/2nqyHR8rguY
	GWNGQDoeQGPKdGndkEw/aZLNyEc6JQTXOgb18xJH6TLsqwrhymIuAJ/VMicaadyqSV/5
	FrO67gjmpFqFF1PltLPVY1CqEY1mKSx94BKnWHo95tbMsQloaqIZYW/iiWUI7YtCn2zc
	q0Ag==
X-Gm-Message-State: AKwxytc/0KIJLyKSgOp9SxAs0k1jtDQQVxQkKo8ok6rt+625X/7w8zl2
	9gvs/u9CXK2x5z5RjCjBWt0pJaeXjnSYVvRFAo4=
X-Google-Smtp-Source: AH8x224NtEXasIfQULYSsZlvkse3u2E6BefYIJXykLDstL1kgkSbApCgrv1hstN5GxwSW1MpWzWhb93v9wCtpjcx0vc=
X-Received: by 10.55.17.84 with SMTP id b81mr6516255qkh.185.1516755457006;
	Tue, 23 Jan 2018 16:57:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.55.103.7 with HTTP; Tue, 23 Jan 2018 16:57:36 -0800 (PST)
Received: by 10.55.103.7 with HTTP; Tue, 23 Jan 2018 16:57:36 -0800 (PST)
In-Reply-To: <668C6E5A-3BB8-4D14-BA41-5990B5D5F3F0@hawaii.edu>
References: <EAC40B83-F1C8-4F56-A9B8-6831FDDD8986@hawaii.edu>
	<CAKSyJXeLWDU7c9gu_6gX5QVsze-yEERX60hn7inB5Q6D4rxU-Q@mail.gmail.com>
	<B6A521B0-E58D-4A64-9029-C98F878C4D44@hawaii.edu>
	<CAKSyJXejRRuRqRmdDgDNS=uPj0xZ1j6zP2etTZ27iVA9V58RNQ@mail.gmail.com>
	<668C6E5A-3BB8-4D14-BA41-5990B5D5F3F0@hawaii.edu>
From: "Bradley C. Kuszmaul" <kuszmaul@gmail.com>
Date: Tue, 23 Jan 2018 19:57:36 -0500
Message-ID: <CAKSyJXetNV8Tk71sNJYGRWq3R6a5nDqX_MqFq-XgeXDspCsR2A@mail.gmail.com>
Subject: Re: Jittery text in successive PostScript sequences
To: Paul Wessel <pwessel@hawaii.edu>
Cc: bug-ghostscript@gnu.org
Content-Type: multipart/alternative; boundary="001a113b086a39e2a405637b26d5"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400d:c0d::232
X-BeenThere: bug-ghostscript@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: "Bug reports and development for GNU GhostScript,
	the PostScript interpreter of the GNU project"
	<bug-ghostscript.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-ghostscript/>
List-Post: <mailto:bug-ghostscript@gnu.org>
List-Help: <mailto:bug-ghostscript-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-ghostscript>,
	<mailto:bug-ghostscript-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Jan 2018 00:58:56 -0000

--001a113b086a39e2a405637b26d5
Content-Type: text/plain; charset="UTF-8"

I downloaded the file and asked vlc what's the resolution.  I can still see
the jaggies on the lines.    That's probably all I know about your
problem.   Maybe by looking at two adjacent frames in PostScript, one could
learn more.

Bradley C Kuszmaul - via snartphone

On Jan 23, 2018 4:53 PM, "Paul Wessel" <pwessel@hawaii.edu> wrote:

> Quicktime says it is 2000x1250 and that is indeed the frame PNG dimensions
> - perhaps you are viewing it in a browser which shows it to be smaller.  in
> my browser it looks much smaller as well.
> Anyway, we are trying to quantify if indeed it is -/+1 pixel which makes
> sense in terms of rounding.  I thought the anti-aliasing settings would add
> the gray to nearby pixels to simulate the sub-pixeling but that does not
> seem to happen on the projected tex [it does happen on other text that we
> have examined].
>
> Paul
>
>
> On Jan 23, 2018, at 2:00 PM, Bradley C. Kuszmaul <kuszmaul@gmail.com>
> wrote:
>
> This video is only 800x500, and the jitter's amplitude appears to be one
> pixel.
>
> On Tue, Jan 23, 2018 at 3:52 PM, Paul Wessel <pwessel@hawaii.edu> wrote:
>
>> Seems resolution independent; I've tried up to 4K.  Here is a 2000x1250
>> MP4 movie, just showing the text HELL. It is especially noticeable for
>> angles 20-30.
>>
>> www.soest.hawaii.edu/pwessel/bug.mp4
>>> <http://www.soest.hawaii.edu/pwessel/bug_200.mp4>
>>>
>>
>> On Jan 23, 2018, at 5:59 AM, Bradley C. Kuszmaul <kuszmaul@gmail.com>
>> wrote:
>>
>> It looks like even the straight lines and circles have jaggies, and your
>> jittering looks like it's just jaggies spread across the time domain.  I
>> don't think you can expect it to look good at such low resolution without
>> taking a lot more care about anti-aliasing. Can you increase the resolution?
>>
>> Bradley C Kuszmaul - via snartphone
>>
>> On Jan 22, 2018 10:06 PM, "Paul Wessel" <pwessel@hawaii.edu> wrote:
>>
>>> Hi developers-
>>>
>>> GMT (gmt.soest.hawaii.edu) is using PostScript to make plots and one
>>> application builds an animation from sequences of PostScript plots
>>> converted to PNG with ghostscript (9.22) and then to MP4 with ffmpeg.  We
>>> have found a problem that may be a ghostscript bug, or alternatively we are
>>> doing something wrong.  When using a perspective view (i.e., using a matrix
>>> concatenation to simulate perspective), the resulting oblique text strings
>>> "jitter" when viewed as a movie.  For an example, see
>>> www.soest.hawaii.edu/pwessel/bug_200.mp4.  As the movie plays, you will
>>> see the INDIVIDUAL letters in the word HELL jitter relative to each other,
>>> despite being set via a single show command (here just a snippet of our
>>> code; setting currentpoint, font etc are omitted here)
>>>
>>> (HELL) dup dup stringwidth pop -2 div exch sh -2 div rmoveto show
>>>
>>> where sh is defined as
>>>
>>> /sh {gsave matrix setmatrix 0 0 moveto true charpath flattenpath
>>> pathbbox newpath 4 1 roll pop pop pop grestore} bind def
>>>
>>> [a complete PS example of a single frame can be found here:
>>> www.soest.hawaii.edu/pwessel/bug.ps.
>>>
>>> At first we suspected flattenpath but HELL (using Helvetica) has no
>>> curved segments (?).  We also tried to override the flattening with 0.2
>>> setflat, but no difference.  We suspect some sort of roundoff but it
>>> affects the different letters in the word differently, and that is not
>>> under our control.  Could any of the operators above be subject to
>>> round-off that affect individual letters?
>>>
>>> Perhaps developers know where this may happen and if there is anything
>>> we can do on our side to remedy the problem.  As you can see there is no
>>> jittering for plotting a circle or lines.  The map frame annotations show
>>> the same jittering so it affects all text.
>>>
>>> Thanks for any insight!  We can provide more details, all individual PS
>>> files, etc upon request. FYI, we have tried both tif and jpg instead of png
>>> but no difference. We also made PDFs and used OS X Automator to build PNGs
>>> and made a movie using QuickTime Pro; same jittering (not sure if OS X High
>>> Sierra uses ghostscript in Preview etc).
>>>
>>> Paul Wessel
>>> Lead developer
>>> The Generic Mapping Tools
>>>
>>>
>>
>
>

--001a113b086a39e2a405637b26d5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">I downloaded the file and asked vlc what&#39;s the resolu=
tion.=C2=A0 I can still see the jaggies on the lines.=C2=A0 =C2=A0 That&#39=
;s probably all I know about your problem.=C2=A0 =C2=A0Maybe by looking at =
two adjacent frames in PostScript, one could learn more.<br><br><div data-s=
martmail=3D"gmail_signature">Bradley C Kuszmaul - via snartphone</div></div=
><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Jan 23, 2018 =
4:53 PM, &quot;Paul Wessel&quot; &lt;<a href=3D"mailto:pwessel@hawaii.edu">=
pwessel@hawaii.edu</a>&gt; wrote:<br type=3D"attribution"><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div style=3D"word-wrap:break-word;line-break:after-white-spa=
ce">Quicktime says it is 2000x1250 and that is indeed the frame PNG dimensi=
ons - perhaps you are viewing it in a browser which shows it to be smaller.=
 =C2=A0in my browser it looks much smaller as well.<div>Anyway, we are tryi=
ng to quantify if indeed it is -/+1 pixel which makes sense in terms of rou=
nding.=C2=A0 I thought the anti-aliasing settings would add the gray to nea=
rby pixels to simulate the sub-pixeling but that does not seem to happen on=
 the projected tex [it does happen on other text that we have examined].</d=
iv><div><br></div><div>Paul</div><div><br><div><br><blockquote type=3D"cite=
"><div>On Jan 23, 2018, at 2:00 PM, Bradley C. Kuszmaul &lt;<a href=3D"mail=
to:kuszmaul@gmail.com" target=3D"_blank">kuszmaul@gmail.com</a>&gt; wrote:<=
/div><br class=3D"m_-414818225799322807Apple-interchange-newline"><div><div=
 dir=3D"ltr">This video is only 800x500, and the jitter&#39;s amplitude app=
ears to be one pixel.</div><div class=3D"gmail_extra"><br><div class=3D"gma=
il_quote">On Tue, Jan 23, 2018 at 3:52 PM, Paul Wessel <span dir=3D"ltr">&l=
t;<a href=3D"mailto:pwessel@hawaii.edu" target=3D"_blank">pwessel@hawaii.ed=
u</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"wor=
d-wrap:break-word;line-break:after-white-space">Seems resolution independen=
t; I&#39;ve tried up to 4K.=C2=A0 Here is a 2000x1250 MP4 movie, just showi=
ng the text HELL. It is especially noticeable for angles 20-30.<br><div><br=
></div><div><div class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquo=
te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-widt=
h:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-le=
ft:1ex"><div style=3D"word-wrap:break-word;line-break:after-white-space"><d=
iv><a href=3D"http://www.soest.hawaii.edu/pwessel/bug_200.mp4" target=3D"_b=
lank">www.soest.hawaii.edu/pwessel/b<wbr>ug.mp4</a></div></div></blockquote=
></div></div><br><blockquote type=3D"cite"><span><div>On Jan 23, 2018, at 5=
:59 AM, Bradley C. Kuszmaul &lt;<a href=3D"mailto:kuszmaul@gmail.com" targe=
t=3D"_blank">kuszmaul@gmail.com</a>&gt; wrote:</div><br class=3D"m_-4148182=
25799322807m_3719001049117885825Apple-interchange-newline"></span><div><div=
 class=3D"m_-414818225799322807h5"><div><div dir=3D"auto">It looks like eve=
n the straight lines and circles have jaggies, and your jittering looks lik=
e it&#39;s just jaggies spread across the time domain.=C2=A0 I don&#39;t th=
ink you can expect it to look good at such low resolution without taking a =
lot more care about anti-aliasing. Can you increase the resolution?<br><br>=
<div data-smartmail=3D"gmail_signature">Bradley C Kuszmaul - via snartphone=
</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Ja=
n 22, 2018 10:06 PM, &quot;Paul Wessel&quot; &lt;<a href=3D"mailto:pwessel@=
hawaii.edu" target=3D"_blank">pwessel@hawaii.edu</a>&gt; wrote:<br type=3D"=
attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-w=
ord;line-break:after-white-space">Hi developers-<div><br></div><div>GMT (<a=
 href=3D"http://gmt.soest.hawaii.edu/" target=3D"_blank">gmt.soest.hawaii.e=
du</a>) is using PostScript to make plots and one application builds an ani=
mation from sequences of PostScript plots converted to PNG with ghostscript=
 (9.22) and then to MP4 with ffmpeg.=C2=A0 We have found a problem that may=
 be a ghostscript bug, or alternatively we are doing something wrong.=C2=A0=
 When using a perspective view (i.e., using a matrix concatenation to simul=
ate perspective), the resulting oblique text strings &quot;jitter&quot; whe=
n viewed as a movie.=C2=A0 For an example, see <a href=3D"http://www.soest.=
hawaii.edu/pwessel/bug_200.mp4" target=3D"_blank">www.soest.hawaii.edu/pwes=
sel/b<wbr>ug_200.mp4</a>.=C2=A0 As the movie plays, you will see the INDIVI=
DUAL letters in the word HELL jitter relative to each other, despite being =
set via a single show command (here just a snippet of our code; setting cur=
rentpoint, font etc are omitted here)</div><div><br></div><div><div>(HELL) =
dup dup stringwidth pop -2 div exch sh -2 div rmoveto show</div></div><div>=
<br></div><div>where sh is defined as</div><div><br></div><div><div>/sh {gs=
ave matrix setmatrix 0 0 moveto true charpath flattenpath pathbbox newpath =
4 1 roll pop pop pop grestore} bind def</div></div><div><br></div><div>[a c=
omplete PS example of a single frame can be found here:=C2=A0<a href=3D"htt=
p://www.soest.hawaii.edu/pwessel/bug.ps" target=3D"_blank">www.soest.hawaii=
.edu/pwe<wbr>ssel/bug.ps</a>.</div><div><br></div><div>At first we suspecte=
d flattenpath but HELL (using Helvetica) has no curved segments (?).=C2=A0 =
We also tried to override the flattening with 0.2 setflat, but no differenc=
e.=C2=A0 We suspect some sort of roundoff but it affects the different lett=
ers in the word differently, and that is not under our control.=C2=A0 Could=
 any of the operators above be subject to round-off that affect individual =
letters?</div><div><br></div><div>Perhaps developers know where this may ha=
ppen and if there is anything we can do on our side to remedy the problem.=
=C2=A0 As you can see there is no jittering for plotting a circle or lines.=
=C2=A0 The map frame annotations show the same jittering so it affects all =
text.</div><div><br></div><div>Thanks for any insight!=C2=A0 We can provide=
 more details, all individual PS files, etc upon request. FYI, we have trie=
d both tif and jpg instead of png but no difference. We also made PDFs and =
used OS X Automator to build PNGs and made a movie using QuickTime Pro; sam=
e jittering (not sure if OS X High Sierra uses ghostscript in Preview etc).=
</div><div><br></div><div>Paul Wessel</div><div>Lead developer</div><div>Th=
e Generic Mapping Tools</div><div><br></div></div></blockquote></div></div>
</div></div></div></blockquote></div><br></div></blockquote></div><br></div=
>
</div></blockquote></div><br></div></div></blockquote></div></div>

--001a113b086a39e2a405637b26d5--


