Previous | Next | (P-PDF) Developers
Topic: Font width calculation/regeneration ?
Conf: (P-PDF) Developers, Msg: 32387
From: mcwong
Date: 1/8/2002 05:41 PM
Hi
Does anyone have any good/useful tips/resources that
helps with truetype font regeneration ?
I am working on a program that needs to regenerate
font width for the /Widths array, where most of the
characters' widths were left as 0 when the document
was convertd from Word to PDF. I then need to replace
some text string in the stream and there are 2 things
I need to worry about
1) font width for the missing characters, which of
course I could choose to specify some fixed values
depending on the basefont type, but this will not
be an elegant solution, will it ?
2) the new string may be shorter or longer than the
original string which becomes tricky, I will leave
that in a separate post instead.
Thanks
MCW