Page 1 of 1

SVG rendering replaces [h′] with [h?]

Posted: 2014-06-21T09:01:16-07:00
by yecril71pl
The following file displays incorrectly:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg  width="160mm" height="90mm" viewBox="0 0 16000 9000" version="1.1" xmlns="http://www.w3.org/2000/svg" >
<text  ><tspan font-size="1000px" font-weight="400" x="8014" y="8405" 	>h′</tspan></text>
</svg>
The text displayed is [h?] instead of [h′].

Re: SVG rendering replaces [h′] with [h?]

Posted: 2014-06-21T09:55:56-07:00
by snibgo
Please state your platform (Windows, Unix, whatever) and version of ImageMagick.

On Windows 8.1, IM 6.8.9-0, saving your SVG as a UTF-8 file, it works fine for me, whether using IM's built-in rateriser or Inkscape.

Your problem might be that your default font doesn't support that UTF-8 character. Try specifying a font (in the SVG file).

Re: SVG rendering replaces [h′] with [h?]

Posted: 2014-06-21T12:16:00-07:00
by yecril71pl
Name : ImageMagick
Version : 6.8.6.9
Release : 2.12.1
Architecture: x86_64
Install Date: sob, 22 mar 2014, 11:39:50
Group : Productivity/Graphics/Other
Size : 387969
License : SUSE-ImageMagick
Signature : RSA/SHA256, pią, 21 mar 2014, 10:30:06, Key ID b88b2fd43dbdc284
Source RPM : ImageMagick-6.8.6.9-2.12.1.src.rpm
Build Date : pią, 14 mar 2014, 09:21:05
Build Host : cloud125
Relocations : (not relocatable)
Packager : http://bugs.opensuse.org
Vendor : openSUSE
URL : http://www.imagemagick.org
Summary : Viewer and Converter for Images

Code: Select all

 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg  width="160mm" height="90mm" viewBox="0 0 16000 9000" version="1.1" xmlns="http://www.w3.org/2000/svg" >
<text  ><tspan font-family="Times" font-size="1000px" font-weight="400" x="8014" y="8405"   >h′</tspan></text>
</svg> 
The result is again [h?], in Times Italic (or something similar).

Re: SVG rendering replaces [h′] with [h?]

Posted: 2014-06-21T13:01:05-07:00
by snibgo
The v6.8.8-8 release notes has:
* Fixed UTF8 issues and added support for reading files with long path names
for the Windows distribution.
So try an upgrade.

Re: SVG rendering replaces [h′] with [h?]

Posted: 2014-06-21T13:16:52-07:00
by yecril71pl
Tried, thanks :)