Skip to main content
Known Participant
August 24, 2013
Question

Warping Text in Post Script

  • August 24, 2013
  • 1 reply
  • 923 views

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

This topic has been closed for replies.

1 reply

Legend
August 24, 2013

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.

Dov Isaacs
Legend
August 24, 2013

... and an awful lot of overhead when the RIP interprets the PostScript!

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)