Copy link to clipboard
Copied
I am writing some Text in PS file. Since the length of Text is Long it overlaps the other text beside it.
Is it possible to Wrap the Text in PS. Say for example How this text will be wrapped
/F100{/I 7.2 d I/Arial F}b F100 (Plan BB-HOME-COMBO-ULD-800-MONTHLY BI MONTHLY-1500 SIX ANNUAL PLAN-8000) 500 10 w
Regards
Harsh
Copy link to clipboard
Copied
It's not impossible to wrap text in PostScript, but it's generally not the right way to do it. Text layout and positioning calculations should be completed before writing the PostScript.
If you are determined to do it in PostScript you can use the stringwidth operator to get the lengths of strings and decide whether they fit, then decide where to split (on spaces or punctuation is usually expected). A lot of coding.
Copy link to clipboard
Copied
... and an awful lot of overhead when the RIP interprets the PostScript!
- Dov