Jump to content

Changing Point Size in a CopyfitLine


Recommended Posts

Okay, I need to change the point size of one field on a line. I have the font change set up, now I need to change the size. I haven't been able to find a solution.

 

Where I change the line to Arial is where I also need that field to be 5 point text.

 

Current Script:

if (Field("Email") != "") //If Email is NOT blank, execute the following statement
   return CopyfitLine("<smallcap>" + Field("wwwLandmarkIndycom") + "</smallcap>" + "  " + '<span font="Arial">' + Field("Block") + '</span>' + "  ", "<smallcap>" + Field("Email") + "</smallcap>"+"<smallcap>" + Field("emailDomain") + "</smallcap>", "Adobe Garamond Pro", 8, 236, 3, true);

 

Probably something simple.

 

Thanks.

Link to comment
Share on other sites

Problem Solved!

 

For those interested, below is my final code.

 

if (Field("Email") != "") //If Email is NOT blank, execute the following statement

   return CopyfitLine("<smallcap>" + Field("Landmark") + "</smallcap>" + "  " + '<span font="Wingdings" pointsize="5">' + Field("Block") + '</span>' + "  ", "<smallcap>" + Field("Email") + "</smallcap>"+"<smallcap>" + Field("emailDomain") + "</smallcap>", "Adobe Garamond Pro", 8, 236, 3, true);
   else 
   return Field("Landmark");

 

This script puts all of the text in small caps. Landmark and Block do not compress if the text oversets, but Email and emailDomain do.

 

Yes I have my box width at 236, my version does not work in hundredths.

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.

Guest
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...