PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________
Aandi Inston wrote:
What is the string width anyway ? The string width returned by the OS ? Who guarantuees me that another computer on another OS will reproduce that exact same string width ?
The PDF format is extremely strict on this point. The string width, except for the base 14 fonts (which are standardised) comes from the PDF itself, in the Widths array (or similar for CID fonts). The Widths (or similar) data is (except as noted) compulsory, so to generate a PDF, you must in any case have this information.
What does the viewer application do when it has to substitute a font ? Draw the string in the new font using the widthtable of the old font ? Or recalculate the matrix (scaling) parameters, based on the difference between the stringwidth of both widthtables (the one found in the PDF and the one that belongs to the new font) ?
Regards,
Adriaan van Os
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfdev.html
