PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

> The next stage is to apply some right hand justification 
> to some of the columns of text and the only way I think
> I can achieve this is to have a matrix of all the 
> character widths for the type 1 fonts, and from this
> calculate the appropriate starting position for the
> string. Could someone tell me where I can get hold of the
> character width tables?

The vast majority of fonts have their widths built into their PDF
descriptions.  The only exceptions to this rule are the "base 14" fonts.

You're going from text to PDF, so you can't just extract the existing widths
(right?).  You need to be able to read this (and several other things) from
the fonts themselves.

www.freetype.org

FreeType is an excellent font tool.  While it's primary goal is to render
fonts, it is also quite capable of extracting all the font attributes you'll
need to provide for PDF.


On the other hand, if you're sticking to those base 14 fonts (makes life
easier in a number of areas), you can hard-code your font widths... and heck
if I can find them.  I KNOW they're out there on the internet, but google
has failed me.  

SOMEONE here must know. I recall that the widths are built into some project
whose source is available, but I coulnd't tell you which project.

--Mark Storer
  Software Engineer
  Cardiff Software
#include <disclaimer>
typdef std::disclaimer<Cardiff> Discard;


To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to