Categories: Known Issue | Symbian C++ | Graphics | S60 3rd Edition | S60 3rd Edition, Feature Pack 1
This page was last modified 05:03, 24 August 2007.
KIS000398 - SVG rendering problems caused by missing viewBox attribute
From Forum Nokia Wiki
SVG rendering problems caused by missing viewBox attribute | KIS000398 | |
Overview | SVG-T graphics files that are missing a ’viewBox’ attribute in their header fail to render correctly on S60 3rd Edition devices. | |
Reported against | S60 3rd Edition, S60 3rd Edition FP1 | |
Date identified | August 7, 2006 | |
Detailed description | SVG-T graphics files that are missing a ’viewBox’ attribute in their header fail to render correctly on S60 3rd Edition devices. Specifically, trying to scale the SVG image (AknIconUtils::SetSize()) does not produce correct results. SVG-T implementation on S60 2nd Edition, FP3 does not require the ’viewBox’ attribute to be specified. | |
How to reproduce | - | |
Solution | In addition to ’width’ and ’height’ attributes, also ’viewBox’ must be specified in the ’svg’ element of the SVG file header. For example, <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> <svg baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" width="64px" height="64px"> ... --> should be: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> <svg baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" width="64px" height="64px" viewBox="0 0 64 64"> ... | |
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with SVG file | hkhan_2004 | Web Technologies and Multimedia Content- Web 技术和多媒体内容 | 0 | 2007-02-28 11:29 |
| Editing SVG theme files w/ external editor? | alphasports | Mobile Java Media (Graphics & Sounds) | 2 | 2006-09-20 22:16 |
| how to show bmp image in S60 v3 | kamaljaiswal | General Symbian C++ | 10 | 2007-05-08 15:58 |
| Inconsistent or missing stackmap at target | LiveRock | Mobile Java General | 1 | 2003-08-20 07:54 |
| Is it possible to convert png to svg and have no zoom limit. | oidicle | Themes/Carbide.ui | 4 | 2007-03-22 05:59 |

