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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

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

Post 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′].
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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).
snibgo's IM pages: im.snibgo.com
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

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

Post 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).
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
yecril71pl
Posts: 81
Joined: 2011-02-08T11:06:09-07:00
Authentication code: 8675308
Location: Warsaw, Poland
Contact:

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

Post by yecril71pl »

Tried, thanks :)
Post Reply