IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#19952 - 08/27/06 09:24 PM Curved text
DustinT12 Offline
Member

Registered: 08/11/03
Posts: 87
Loc: Pittsburgh, PA
I'm fairly certain there is no way to do this, but, is there any way to create text on a curve within PlanetPress? For example, something like what you might have in WordArt within the MS Office products.

Top
#19953 - 08/28/06 09:14 AM Re: Curved text
Anonymous
Unregistered


Hi:

With a little programming, it is relatively simple to wrap text around a circle or part of it.

More complex curves are not as simple. They would require the use of postscript passthroughs to define the curve and have the text stick to it.

Top
#19954 - 08/28/06 09:27 AM Re: Curved text
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Dustin,

You cannot curve the test like you can do in WordArt. At least, not without programming. The best tip I can offer you is to create the curved text in Word, then take a screenshot in bitmap or jpeg format, and then use the image in PlanetPress.

An alternative would be to create a text object for every letters of your words, and then rotate the text boxes to create a curve effect. However, since you have to make a text box for every letters, this method could be time consuming, and you have to determine the angles by yourself, and place the objects manually.

Regards,
Rapha

Top
#19955 - 09/05/06 12:34 AM Re: Curved text
DustinT12 Offline
Member

Registered: 08/11/03
Posts: 87
Loc: Pittsburgh, PA
I am not adverse to using programming to achieve this. Unfortunately, the text that needs to be on the curve is variable data not static text. Can you perhaps show me some code to achieve wrapping text on a curve or circle?

Top
#19956 - 09/05/06 10:00 AM Re: Curved text
stuartg Offline
OL Expert

Registered: 03/06/03
Posts: 713
Loc: Swindon, England
Hi
Try the following which will write text around a circle.

It attempts to set the character spacing.
However, the characters are not stretched or distorted to fit the curve, that would require some serious messing about with matricies - maybe another day.

Stuart

Code:
define(&data,string,'Start! Hello World! Hello World! End!')
set(&data,&data+' ')
define(&i,integer,0)
moveto(1.5,1) %CIRCLE CENTRE
define(&a,measure,90) %start angle
define(&radius,measure,1.97)  %CIRCLE RADIUS
for(&i,1,1,length(&data)-1)
  gsave()
  setangle(&a)
  moveto(-(stringwidth(mid(&data,&i,1)))/2,-&radius)
  show(mid(&data,&i,1))
  set(&a,&a-(stringwidth(mid(&data,&i,2))*((57/&radius)/2)))
  grestore()
endfor() 

Top


Moderator:  cosimo, OL Newsgroup Support