[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: [OpenJDK 2D-Dev] PostScript PrintJob LANDSCAPE computes wrong value for getStringBounds
From:       Alvaro_Viñuela_Carnicero <avinuela () gmv ! com>
Date:       2016-12-21 15:42:24
Message-ID: 1362D213B7103346A591F9E31529E5C24B9607 () PTMMAILBOX1 ! gmv ! es
[Download RAW message or body]

Hello Phil,

Thank you very much for your answer and your help with this bug.

Our problem is reproducible by setting two lines and a text in between. The relative \
distance between text and lines is different printing in landscape, so text appears \
out of the space between lines.

We will keep posted to your progress and news.

Thank you.

Best regards,

Álvaro.

From: Phil Race [mailto:philip.race@oracle.com]
Sent: martes, 20 de diciembre de 2016 23:35
To: Alvaro Viñuela Carnicero <avinuela@gmv.com>; 2d-dev@openjdk.java.net
Cc: Óscar Menéndez Sánchez <omenendez@gmv.com>
Subject: Re: [OpenJDK 2D-Dev] PostScript PrintJob LANDSCAPE computes wrong value for \
getStringBounds

There is also https://bugs.openjdk.java.net/browse/JDK-8139178
The problem there sounds like mixing up horizontal and vertical under rotation.
But yours (if I read you correctly) is more that the advances are off by a little.

I think 8159061<https://bugs.openjdk.java.net/browse/JDK-8159061?jql=labels%20%3D%20jdk-port> \
should be re-opened for examination since a binary built from standard OpenJDK source \
reproduces this on a current O/S (Ubuntu 16.04)

I used OpenJDK 8 GA (very old) and current OpenJDK 9

-phil.

On 12/14/2016 07:46 AM, Alvaro Viñuela Carnicero wrote:
Hello,

We have been experienced misalignment of text  when using a StreamPrintServiceFactory \
or StreamPrintService to create a print job for printing (text and graphics) to \
postscript with landscape attribute.

A similar error was reported in JBS with title:
"PostScript PrintJob LANDSCAPE computes wrong value for getStringBounds"
https://bugs.openjdk.java.net/browse/JDK-8159061?jql=labels%20%3D%20jdk-port

Using the Bugtest provided in this bug, we could verify correct behaviour on \
opend-jdk_1.6.0_24, but not in opend-jdk_1.8.0_65 and opend-jdk_1.8.0_111 as in our \
application that was correctly printing in old openjdk version. As also mentioned in \
reported bug, error is not reproducible (as in our application too) using jdk \
binaries.

Bug was closed because it is not reproducible on jdk binaries. Is there any \
possibility to solved this bug on future openjdk releases?. Are we forced to use jdk \
binaries to get this issue solved?.

Thank you very much in advance for your help.

Best regards,

Álvaro.

P Please consider the environment before printing this e-mail.
________________________________
This message including any attachments may contain confidential information, \
according to our Information Security Management System, and intended solely for a \
specific individual to whom they are addressed. Any unauthorised copy, disclosure or \
distribution of this message is strictly forbidden. If you have received this \
transmission in error, please notify the sender immediately and delete it. Thank you. \
________________________________ Este mensaje, y en su caso, cualquier fichero anexo \
al mismo, puede contener información clasificada por su emisor como confidencial en \
el marco de su Sistema de Gestión de Seguridad de la Información siendo para uso \
exclusivo del destinatario, quedando prohibida su divulgación copia o distribución a \
terceros sin la autorización expresa del remitente. Si Vd. ha recibido este mensaje \
erróneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por \
su colaboración. ________________________________
Esta mensagem, incluindo qualquer ficheiro anexo, pode conter informação \
confidencial, de acordo com nosso Sistema de Gestão de Segurança da Informação, sendo \
para uso exclusivo do destinatário e estando proibida a sua divulgação, cópia ou \
distribuição a terceiros sem autorização expressa do remetente da mesma. Se recebeu \
esta mensagem por engano, por favor avise de imediato o remetente e apague-a. \
Obrigado pela sua colaboração. ________________________________


P Please consider the environment before printing this e-mail.

______________________
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.

______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.

______________________


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Webdings;
	panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	color:black;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;
	color:black;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="ES" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hello Phil,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D">Thank you very much for \
your answer and your help with this bug. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB" style="color:#1F497D">Our problem is reproducible by setting two lines \
and a text in between. The relative distance between text and lines is different \
printing in landscape, so text appears out of the space between \
lines.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-GB" \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB" style="color:#1F497D">We will keep posted to your progress and \
news.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-GB" \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB" style="color:#1F497D">Thank you.<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB" style="color:#1F497D">Best regards,<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB" style="color:#1F497D">Álvaro. <o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB" \
style="color:#1F497D"><o:p>&nbsp;</o:p></span></p> <div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" \
style="color:windowtext;mso-fareast-language:ES">From:</span></b><span lang="EN-US" \
style="color:windowtext;mso-fareast-language:ES"> Phil Race \
[mailto:philip.race@oracle.com] <br>
<b>Sent:</b> martes, 20 de diciembre de 2016 23:35<br>
<b>To:</b> Alvaro Viñuela Carnicero &lt;avinuela@gmv.com&gt;; \
2d-dev@openjdk.java.net<br> <b>Cc:</b> Óscar Menéndez Sánchez \
&lt;omenendez@gmv.com&gt;<br> <b>Subject:</b> Re: [OpenJDK 2D-Dev] PostScript \
PrintJob LANDSCAPE computes wrong value for getStringBounds<o:p></o:p></span></p> \
</div> </div>
<p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">There is also <a \
href="https://bugs.openjdk.java.net/browse/JDK-8139178"> \
https://bugs.openjdk.java.net/browse/JDK-8139178</a><br> The problem there sounds \
like mixing up horizontal and vertical under rotation.<br> But yours (if I read you \
correctly) is more that the advances are off by a little.<br> <br>
I think <span lang="EN-GB"><a \
href="https://bugs.openjdk.java.net/browse/JDK-8159061?jql=labels%20%3D%20jdk-port">8159061</a> \
should be re-opened for examination since a binary built<br> from standard OpenJDK \
source reproduces this on a current O/S (Ubuntu 16.04)<br> </span><br>
I used OpenJDK 8 GA (very old) and current OpenJDK 9<br>
<br>
-phil.<br>
<br>
<span style="font-size:12.0pt;mso-fareast-language:ES"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">On 12/14/2016 07:46 AM, Alvaro Viñuela Carnicero \
wrote:<o:p></o:p></p> </div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB">We have been experienced misalignment of text \
&nbsp;when using a StreamPrintServiceFactory or StreamPrintService to create a print \
job for printing (text and graphics) to postscript with landscape \
attribute.</span><o:p></o:p></p> <p class="MsoNormal"><span \
lang="EN-GB">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal"><span lang="EN-GB">A \
similar error was reported in JBS with title:</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB">&#8220;PostScript PrintJob LANDSCAPE computes \
wrong value for getStringBounds&#8221;</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB"><a \
href="https://bugs.openjdk.java.net/browse/JDK-8159061?jql=labels%20%3D%20jdk-port">ht \
tps://bugs.openjdk.java.net/browse/JDK-8159061?jql=labels%20%3D%20jdk-port</a></span><o:p></o:p></p>
 <p class="MsoNormal"><span lang="EN-GB">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB">Using the Bugtest provided in this bug, we \
could verify correct behaviour on opend-jdk_1.6.0_24, but not in opend-jdk_1.8.0_65 \
and opend-jdk_1.8.0_111 as in our application that was correctly printing in old \
openjdk version.  As also mentioned in reported bug, error is not reproducible (as in \
our application too) using jdk binaries.</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB">&nbsp;</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB">Bug was closed because it is not reproducible on \
jdk binaries. Is there any possibility to solved this bug on future openjdk \
releases?. Are we forced to use jdk binaries to get this issue \
solved?.</span><o:p></o:p></p> <p class="MsoNormal"><span \
lang="EN-GB">&nbsp;</span><o:p></o:p></p> <p class="MsoNormal"><span \
lang="EN-GB">Thank you very much in advance for your help.</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB">&nbsp;</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB">Best regards,</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB">&nbsp;</span><o:p></o:p></p> <p \
class="MsoNormal"><span lang="EN-GB">Álvaro.</span><o:p></o:p></p> <p \
class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif;mso-fareast-language:ES"><br> </span><span \
style="font-size:18.0pt;font-family:Webdings;color:green;mso-fareast-language:ES">P \
</span><span style="font-size:7.0pt;font-family:&quot;Arial&quot;,sans-serif;color:green;mso-fareast-language:ES">Please \
consider the environment before printing this e-mail.</span><span \
style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif;mso-fareast-language:ES"> <o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span \
style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif;mso-fareast-language:ES"> <hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span \
style="font-size:7.5pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES">This \
message including any attachments may contain confidential information, according to \
our Information Security Management System, and intended  solely for a specific \
individual to whom they are addressed. Any unauthorised copy, disclosure or \
distribution of this message is strictly forbidden. If you have received this \
transmission in error, please notify the sender immediately and delete it. Thank  \
you. </span><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES"><o:p></o:p></span></p>
 <div class="MsoNormal" align="center" style="text-align:center"><span \
style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES">
 <hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span \
style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES">Este \
mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener información \
clasificada por su emisor como confidencial en el marco  de su Sistema de Gestión de \
Seguridad de la Información siendo para uso exclusivo del destinatario, quedando \
prohibida su divulgación copia o distribución a terceros sin la autorización expresa \
del remitente. Si Vd. ha recibido este mensaje erróneamente, se  ruega lo notifique \
al remitente y proceda a su borrado. </span><span lang="EN-GB" \
style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES">Gracias \
por su colaboración.</span><span lang="EN-GB" \
style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif;mso-fareast-language:ES"> </span><span \
style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES"><o:p></o:p></span></p>
 <div class="MsoNormal" align="center" style="text-align:center"><span \
style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES">
 <hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span \
style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES">Esta \
mensagem, incluindo qualquer ficheiro anexo, pode conter informação confidencial, de \
acordo com nosso Sistema de Gestão de Segurança da  Informação, sendo para uso \
exclusivo do destinatário e estando proibida a sua divulgação, cópia ou distribuição \
a terceiros sem autorização expressa do remetente da mesma. Se recebeu esta mensagem \
por engano, por favor avise de imediato o remetente e apague-a. </span><span \
lang="EN-GB" style="font-size:8.0pt;font-family:&quot;Arial&quot;,sans-serif;color:gray;mso-fareast-language:ES">Obrigado \
pela sua colaboração. </span><span style="font-size:12.0pt;font-family:&quot;Times \
New Roman&quot;,serif;mso-fareast-language:ES"><o:p></o:p></span></p> <div \
class="MsoNormal" align="center" style="text-align:center"><span \
style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif;mso-fareast-language:ES"> <hr size="2" width="100%" align="center">
</span></div>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,serif;mso-fareast-language:ES"><o:p>&nbsp;</o:p></span></p> </div>
<span style=""><br>
</span><span style="font-size:18.0pt; line-height:125%; font-family:Webdings; \
color:green">P<span style=""></span> <span style="font-size:7.0pt; line-height:125%; \
font-family:&quot;Arial&quot;,&quot;sans-serif&quot;; color:green"> Please consider \
the environment before printing this e-mail.</span></span><span style=""></span> <p>
<! English>
<font size=1 color=gray face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:gray'><hr size=2 width='100%' align=center>
This message including any attachments may contain confidential information,
according to our Information Security Management System, and intended solely
for a specific individual to whom they are addressed. Any unauthorised copy,
disclosure or distribution of this message is strictly forbidden. If you have
received this transmission in error, please notify the sender immediately and delete \
it. Thank you. </span></font>
<! Spanish>
<font size=1 color=gray face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:gray'><hr size=2 width='100%' align=center>
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener
información clasificada por su emisor como confidencial en el marco de su
Sistema de Gestión de Seguridad de la Información siendo para uso 
exclusivo del destinatario, quedando prohibida su divulgación copia o 
distribución a terceros sin la autorización expresa del remitente. 
Si Vd. ha recibido este mensaje erróneamente, se ruega lo notifique al 
remitente y proceda a su borrado.
</span></font><font size=1 color=gray face=Arial><span lang=EN-GB
style='font-size:8.0pt;font-family:Arial;color:gray'>Gracias por su
colaboración.<o:p></o:p></span></font>
<! Portuguese>
<font size=1 color=gray face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:gray'><hr size=2 width='100%' align=center>
Esta mensagem, incluindo qualquer ficheiro anexo, pode conter informação \
confidencial,  de acordo com nosso Sistema de Gestão de Segurança da Informação, \
sendo para uso exclusivo  do destinatário e estando proibida a sua divulgação, cópia \
ou distribuição a terceiros  sem autorização expressa do remetente da mesma. Se \
recebeu esta mensagem por engano,  por favor avise de imediato o remetente e \
apague-a. </span></font><font size=1 color=gray face=Arial><span lang=EN-GB
style='font-size:8.0pt;font-family:Arial;color:gray'>Obrigado pela sua colaboração.
<o:p></o:p></span></font>

<hr size=2 width='100%' align=center></p>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic