Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I have discovered a truly remarkable method of finding the width of text in proportional fonts in PDFs, which this comment field is too small to contain.

    I can probably bundle up a general explanation and pass it on to the authors; is this worth doing, or is the problem already solved elsewhere?
    • Well I'd be really interested in this. Let me know (driectyly, or via a reply to this post) where you're posting it to.
      • I'll give you some more information and see if you're still interested.

        Factoid #1: Positioning in PDF is given in thousandths of a point (ie 72000ths of an inch), as far as I can recall.

        Factoid #2: The basic PDF fonts (Times, Courier, etc) have their exact metrics, including each character's width in 72000ths of an inch, defined in special files that are freely distributable and included in every installation of Adobe Reader (and presumably Ghostscript et al).

        Factoid #3: The font metrics files are easily