Err
Active Member
- Joined
- Nov 16, 2006
- Messages
- 274
Hi,
I'm writing a short macro that rewrites a text file to put part of it into a pdf.
The problem that I'm having (besides possibly, using the wrong tool) is that the widths of individual characters change depending on the character. So it is not sufficient to merely count the length of a string because a capital o "O" is so much wider than a lowercase i "i".
I was wondering if anyone has a function that can give different weights for characters.
I started one myself; but while I'm writing it -I'd thought that someone else might have already invented it.
Thanks
I'm writing a short macro that rewrites a text file to put part of it into a pdf.
The problem that I'm having (besides possibly, using the wrong tool) is that the widths of individual characters change depending on the character. So it is not sufficient to merely count the length of a string because a capital o "O" is so much wider than a lowercase i "i".
I was wondering if anyone has a function that can give different weights for characters.
I started one myself; but while I'm writing it -I'd thought that someone else might have already invented it.
Thanks