Jump to content

Change point size of font based on character legnth

Recommended Posts

Hi All


I have a variable name badge and customer is asking if I can change point size of the names based on the character length supplied in their database file.


ex. names containing 1 - 14 characters use 24 point

names containing 15 and above use 20 point


I apologize if this is rudimentary in nature, but any help would be greatly appreciated.




Link to comment
Share on other sites

if (Len(Trim(Field("NAME"))) < 15) {

return '<z newsize="24"/>' + Trim(Field("NAME"));


} else {

return '<z newsize="20"/>' + Trim(Field("NAME"));



See page 46 of the Tags reference manual.


Another route would be to check out copyfitting and allow text to expand. See page 140 of the User manual for more info.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...