Re: Vertical Punctuation Rotation on textpaths in tb writing mode for Japanese Text

Logan Waggoner <[email protected]> Mon, 4 Feb 2019 03:41:49 +0000
Newsgroups gmane.text.xml.batik.user
Message-ID <MWHPR02MB3278F159DD42B4B84506D36BBD6D0@MWHPR02MB3278.namprd02.prod.outlook.com>
--_000_MWHPR02MB3278F159DD42B4B84506D36BBD6D0MWHPR02MB3278namp_
Content-Type: text/plain; charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

Did you try loading the fonts into system memory first? https://stackoverfl=
ow.com/questions/5652344/how-can-i-use-a-custom-font-in-java

I've transcoded many languages from svg to png before but not like you have=
 there. I simply load all the font families into the system then set the fo=
nt family using css (not using url). I dont know if there is an issue using=
 local resource lookups (various issues I can think of) the method I use av=
oids that problem.
________________________________
From: Parth Upadhyay <[email protected]>
Sent: Thursday, January 31, 2019 2:54:56 AM
To: [email protected]
Subject: Vertical Punctuation Rotation on textpaths in tb writing mode for =
Japanese Text

Hello,

I'm using batik 1.10 to render svgs to png. I noticed that in `tb` writing =
mode, punctuation doesn't seem to get rotated as it should:

Repo to reproduce problem: https://github.com/justaparth/batik-vertical-tes=
t
Batik Result: https://github.com/justaparth/batik-vertical-test/blob/master=
/readme_resources/batik_result.png
Chrome Result: https://github.com/justaparth/batik-vertical-test/blob/maste=
r/readme_resources/chrome_result.png

In chrome, the full-width parenthesis and quote characters, =1B$B!J!V=1B(B =
, get rotated 90 degrees (as is natural in vertically written japanese), bu=
t when rendered on batik, they remain upright.

Did I make some mistake in my svg file? Or is this a bug in batik?

My machine is running:
OSX 10.13.6 (also tried on a centos 7.5 machine)
openjdk-11.0.2 (though i have also tried with jdk 8 and had similar results=
)

Please let me know if you need any more information. Any help would be grea=
tly appreciated!

Thanks,
-parth

--_000_MWHPR02MB3278F159DD42B4B84506D36BBD6D0MWHPR02MB3278namp_
Content-Type: text/html; charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-2022-=
jp">
</head>
<body>
Did you try loading the fonts into system memory first? https://stackoverfl=
ow.com/questions/5652344/how-can-i-use-a-custom-font-in-java<br>
<br>
I've transcoded many languages from svg to png before but not like you have=
 there. I simply load all the font families into the system then set the fo=
nt family using css (not using url). I dont know if there is an issue using=
 local resource lookups (various
 issues I can think of) the method I use avoids that problem. <br>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Parth Upadhyay &lt;pa=
[email protected]&gt;<br>
<b>Sent:</b> Thursday, January 31, 2019 2:54:56 AM<br>
<b>To:</b> [email protected]<br>
<b>Subject:</b> Vertical Punctuation Rotation on textpaths in tb writing mo=
de for Japanese Text</font>
<div>&nbsp;</div>
</div>
<div>
<div dir=3D"ltr">
<div dir=3D"ltr">
<div dir=3D"ltr">
<div dir=3D"ltr">
<div dir=3D"ltr">
<div dir=3D"ltr">Hello,<br>
<br>
I'm using batik 1.10 to render&nbsp;svgs to png. I noticed that in `tb` wri=
ting mode, punctuation doesn't seem to get rotated as it should:<br>
<div><br>
Repo to reproduce problem:&nbsp;<a href=3D"https://github.com/justaparth/ba=
tik-vertical-test">https://github.com/justaparth/batik-vertical-test</a></d=
iv>
<div>Batik Result:&nbsp;<a href=3D"https://github.com/justaparth/batik-vert=
ical-test/blob/master/readme_resources/batik_result.png">https://github.com=
/justaparth/batik-vertical-test/blob/master/readme_resources/batik_result.p=
ng</a><br>
Chrome Result:&nbsp;<a href=3D"https://github.com/justaparth/batik-vertical=
-test/blob/master/readme_resources/chrome_result.png">https://github.com/ju=
staparth/batik-vertical-test/blob/master/readme_resources/chrome_result.png=
</a><br>
<br>
In chrome, the full-width parenthesis and quote characters, =1B$B!J!V=1B(B =
, get rotated 90 degrees (as is natural in vertically written japanese), bu=
t when rendered on batik, they remain upright.</div>
<div><br>
</div>
<div>Did I make some mistake in my svg file? Or is this a bug in batik?</di=
v>
<div><br>
</div>
<div>My machine is running:</div>
<div>OSX 10.13.6 (also tried on a centos 7.5 machine)</div>
<div>openjdk-11.0.2 (though i have also tried with jdk 8 and had similar re=
sults)</div>
<div><br>
Please let me know if you need any more information. Any help would be grea=
tly appreciated!</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-parth</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_MWHPR02MB3278F159DD42B4B84506D36BBD6D0MWHPR02MB3278namp_--