|
From: | Peter Bjuhr |
Subject: | Re: Relation between units in source code and SVG output |
Date: | Tue, 08 Apr 2014 14:35:48 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 2014-04-07 18:28, David Kastrup wrote:
Peter Bjuhr <address@hidden> writes:(In the SVG definition I read:The supported length unit identifiers are: em, ex, px, pt, pc, cm, mm, in, and percentages.I guess relational units as em or even % could equal staff spaces in this case...)LilyPond's pt is 1/72.27in while PostScript's (and likely SVG's) pt is 1/72in. This may also affect pc which is usually defined as 12pt.
Thanks David!I've now learnt some more about this. The units of the elements in the SVG file is likely the same as in LilyPond but they're scaled by the viewBox element. So when you set a different staff-size only the scaling in the viewBox is adjusted and the unit of the other elements are intact. I've only tested markup elements so far so I may need to add a little reservation here.
Judging from this could we assume that the unit is LilyPond pt:s which are scaled to fit a particular container element?
Best Peter
[Prev in Thread] | Current Thread | [Next in Thread] |