On Tue, Aug 05, 2014 at 09:52:05PM +0200, Tavmjong Bah wrote:
Yes, templates should be fixed. I had a quick look but didn't see an easy fix (need to wade through the template code). I probably won't have time to look into it seriously until the end of the month. If the 'viewBox' and the 'width' and 'height' are off, that will cause problems. I also need to understand the purpose of the 'inkscape:document-units' property.
Then let's hold off on merging this feature to trunk until the templates have been updated. Having bug reports filed on the remaining work would be helpful for tracking purposes.
Bryce
Tav
On Tue, 2014-08-05 at 14:47 +0200, su_v wrote:
On 2014-08-05 13:29 , Tavmjong Bah wrote:
The experimental branch has been using 96 pixels per inch per the CSS 2.1 standard for over two months now without complaint. Is there any objection to switching trunk to this value? As Inkscape has switched to using 'pt' for text size by default, it is important that this change happen to ensure that the size of text rendered in browsers match the size of text rendered in Inkscape.
I don't use experimental builds often (mostly just to test the path effects), and have no clue about issues the change actually might trigger.
Here's a quick one:
- launch experimental with default (new) prefs, locale: en_US
- create a new file via procedural template: 'File > New > Templates > Empty page' (A4, vertical)
- enable 'Snap to page border'
- draw a rectangle snapped to the page corners
- remove stroke from rectangle
- compare size displayed in rect tool controls bar (px) to size displayed in select tool controls bar (px)
The width and height values unexpectedly differ (they should match).
Note that the procedural template creates the same viewBox size in trunk and experimental: viewBox="0 0 744.09448 1052.3622" I would have expected that with experimental, the viewBox would match the new internal resolution for an A4 page (210mm x 297mm): viewBox="0 0 793.7008 1122.5197"
The custom size of that viewBox attribute is sticky (in experimental), no matter how many variations are applied to default document units and (custom) page size units - with such a file, it's not possible to return to a 1:1 state (in SVG: width / height and viewBox match); the content is always scaled:
- deselect the rectangle
- open 'Document Properties' and change default units to 'mm'
- repeat the comparison (width&height of rect with rect/select tool)
Width and height values (now in 'mm') as shown in the two tool contexts still differ.
The viewBox now has changed to: viewBox="0 0 196.875 278.4375" Expected (?) viewBox value AFAIU would be viewBox="0 0 210 297"
Regards, V
Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.cl... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel