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


Groups > comp.lang.postscript > #2255

Re: . bbox of a set of glyphs

Newsgroups comp.lang.postscript
Date 2015-05-11 01:40 -0700
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>
Message-ID <fa431a54-7de3-48df-9f0d-05df3c8eaaf0@googlegroups.com> (permalink)
Subject Re: . bbox of a set of glyphs
From SaGS <sags5495@gmail.com>

Show all headers | View raw


On Friday, May 8, 2015 at 11:34:44 AM UTC+3, jdaw1 wrote:
> ...
> 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.
> ...

True, and that's why you will usually do a "flattenpath" before "pathbbox". And since the path is automatically flattened anyway before a "stroke"/"fill"/etc the result should be accurate enough.

This use case is explained in the PS Reference Manual under "pathbbox" (with a reference from "flattenpath" too), and also used near the end of section 5.4 "Glyph Metric Information". I remember the PS Cookbook also explains this (but I do not have it at hand to check).

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