Measuring the length of proportional font text
Posted: Sun Oct 18, 2009 8:11 am
Hi all,
Is there a way to measure the length of a string that is going to print in a proportional font in NWP?
I am printing a string onto a check in the memo section. If the string will fit there, I want to print it in a [MEDIUM] sized Arial font, just like the rest of the check. If it won't fit there, I will shrink the font of just that one string. This was easy in non-proportional fonts because you could just compare string lengths. But it's trickier in proportional fonts.
Since you can line up decimals and do other justification of proportional fonts, I thought there may some way to measure a string as well.
-- Susan
Is there a way to measure the length of a string that is going to print in a proportional font in NWP?
I am printing a string onto a check in the memo section. If the string will fit there, I want to print it in a [MEDIUM] sized Arial font, just like the rest of the check. If it won't fit there, I will shrink the font of just that one string. This was easy in non-proportional fonts because you could just compare string lengths. But it's trickier in proportional fonts.
Since you can line up decimals and do other justification of proportional fonts, I thought there may some way to measure a string as well.
-- Susan