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
#50518 - 01/02/15 11:12 AM Changing font size depending on how many character
GPbrandon Offline
OL Newbie

Registered: 03/05/12
Posts: 2
Loc: Illinois
So I have these cards that have a big logo on the top of the sheet and in between these pictures they want a first and last name. The customer wants the font size to be 24 but the problem is some of the names have 25+ characters in them and they over lap the logo, which they do not want. Is there some type of expression that could make the font size 18 only for names that are for lets say 24 characters or more?

#50548 - 01/06/15 03:44 PM Re: Changing font size depending on how many character [Re: GPbrandon]
Raphael Lalonde Lefebvre Offline
OL Expert

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

PrintShop Mail already has the "Copy Fitting" feature that might be what you are looking for.

Click on your text box, and in the Properties, you'll find "Copy Fitting". Expand it, and you'll find the option to reduce font size when the characters exceed the available space in the box. You can then specify a minimum font size, and whether you want to allow line breaks in case even that minimum font size ends up exceeding the box.

Hope that helps!

Raphaël Lalonde Lefebvre

#50655 - 01/22/15 02:41 PM Re: Changing font size depending on how many character [Re: GPbrandon]
Justin Willis Offline
OL Newbie

Registered: 01/22/15
Posts: 1
Loc: TN, USA
Declare two variables lets call them @NAME25@ and @NAME18@
set each to the desired font and size.

for @NAME25@
IF(LEN([FirstName]&" "&[LastName])>25,[FirstName]&" "&[LastName],"")

IF(LEN([FirstName]&" "&[LastName])<25,[FirstName]&" "&[LastName],"")