Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2252

Re: . bbox of a set of glyphs

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: . bbox of a set of glyphs
Date 2015-05-08 10:44 +0100
Message-ID <MPG.2fb695c8820c98ee9898f5@usenet.plus.net> (permalink)
References <e960544e-41e2-4c87-bda4-dca56daf7c41@googlegroups.com> <fb3c69b4-2c5a-404a-acfa-dbf5a3e25765@googlegroups.com> <9ce0b2cf-f75e-47f1-9108-eb05413e3ca6@googlegroups.com> <MPG.2fb1295f618d478c9898f2@usenet.plus.net> <70749a71-f37e-414b-9848-51285c1c290f@googlegroups.com>

Show all headers | View raw


In article <70749a71-f37e-414b-9848-51285c1c290f@googlegroups.com>, 
jdawiseman@gmail.com says...
> 
> > Should be pathbbox there, though I like the idea of a bath bbox :-)
> 
> Oops. Sorry.
> 
> 
> 
> FYI, there's an extra problem with pathbbox: it uses the control points of curves, not the curves themselves. So if the path has curves, its box is reported as being bigger than it should be. This can be exacerbated by rotation. 

Good point, and that's almost certainly what's causing the differences 
in the bbox calculation.

The GS bbox device does calculate the extents of the paths, which is why 
its more accurate I suspect. Note that mitres can also give similar 
errors, and this too can vary considerably with the resolution.

One of the GS scripts, possibly ps2eps or ps2epsi, used to work by 
rendering to a low resolution bitmap and counting the pixels to find the 
boundaries, which is where this problem (with text as well) surfaced 
originally, and is why that script was altered to use the bbox device.

				Ken

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

.   bbox of a set of glyphs jodun@mail.com - 2015-04-30 15:05 -0700
  Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-01 07:48 +0100
  Re: .   bbox of a set of glyphs jdaw1 <jdawiseman@gmail.com> - 2015-05-01 01:50 -0700
  Re: .   bbox of a set of glyphs jodun@mail.com - 2015-05-02 06:48 -0700
    Re: .   bbox of a set of glyphs jdaw1 <jdawiseman@gmail.com> - 2015-05-02 14:13 -0700
      Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-04 08:00 +0100
        Re: .   bbox of a set of glyphs jdaw1 <jdawiseman@gmail.com> - 2015-05-08 01:34 -0700
          Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-08 10:44 +0100
            Re: .   bbox of a set of glyphs jdaw1 <jdawiseman@gmail.com> - 2015-05-08 05:06 -0700
          Re: .   bbox of a set of glyphs SaGS <sags5495@gmail.com> - 2015-05-11 01:40 -0700
            Re: .   bbox of a set of glyphs jdaw1 <jdawiseman@gmail.com> - 2015-05-11 02:58 -0700
    Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-04 08:50 +0100
  Re: .   bbox of a set of glyphs jodun@mail.com - 2015-05-04 11:22 -0700
  Re: .   bbox of a set of glyphs jodun@mail.com - 2015-05-07 14:01 -0700
    Re: .   bbox of a set of glyphs luser- -droog <mijoryx@yahoo.com> - 2015-05-07 21:19 -0700
    Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-08 08:21 +0100
    Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-08 12:06 +0100
  Re: .   bbox of a set of glyphs jodun@mail.com - 2015-05-12 07:44 -0700
    Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-12 16:36 +0100
  Re: .   bbox of a set of glyphs jodun@mail.com - 2015-05-14 08:18 -0700
    Re: .   bbox of a set of glyphs ken <ken@spamcop.net> - 2015-05-14 17:31 +0100

csiph-web