xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathan wood <jonathanshaww...@gmail.com>
Subject Re: Units in SVG - PDF
Date Sat, 12 Feb 2011 01:08:38 GMT
H Chris & Tim.

  I think that the confusion comes from an example in the spec, section 7.10
Units.  Without context, the reader might pick out the 1pt == 1.25px...

my 2 cents

--- clip


   The other absolute unit identifiers from CSS (i.e., pt, pc, cm, mm, in)
   are all defined as an appropriate multiple of one *px* unit (which,
   according to the previous item, is defined to be equal to one user unit),
   based on what the SVG user agent determines is the size of a *px* unit
   (possibly passed from the parent processor or environment at initialization
   time). For example, suppose that the user agent can determine from its
   environment that "1px" corresponds to "0.2822222mm" (i.e., 90dpi). Then, for
   all processing of SVG content:
   - "1pt" equals "1.25px" (and therefore 1.25 user units)
      - "1pc" equals "15px" (and therefore 15 user units)
      - "1mm" would be "3.543307px" (3.543307 user units)
      - "1cm" equals "35.43307px" (and therefore 35.43307 user units)
      - "1in" equals "90px" (and therefore 90 user units)

-- clip

On Fri, Feb 11, 2011 at 1:18 PM, Chris Lilley <chris@w3.org> wrote:

> On Friday, February 11, 2011, 12:17:06 AM, Tim wrote:
> TH> I looked up the SVG specifications and found that pt is 1.25
> TH> pixels. However, this renders wrongly on the PDF. The image
> TH> becomes too big and is cut off. When I enter 1.5f instead of 1.25f
> TH> above, it seems more correct  but still a bit out.
> Tim, could you give me a pointer to exactly where you read that definition?
> --
>  Chris Lilley   Technical Director, Interaction Domain
>  W3C Graphics Activity Lead, Fonts Activity Lead
>  Co-Chair, W3C Hypertext CG
>  Member, CSS, WebFonts, SVG Working Groups
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message