Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change fonts and sizes on centered text

Status
Not open for further replies.

wilfri

Programmer
Sep 6, 2011
1
US
Working in postscript. I need to be able to change the font and/or size on a centered line and keep it centered. For example: on a business card the name line might include the degree title "John Doe, MDS, MS, PhD (etc...). If the name is 11pt and the degrees are say 8pt, how can I change that AND keep the line properly centered? I hope that makes sense. Any help is appreciated.

 
Hello

Use command stringwidth to estimate the length of your text, and then calculate the x from left to have a centered text.

Do not forget the "pop" just after. (see in postscript cookbook)

Have a look at
cdy
Louis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top