kkeiz
-
Posts
6 -
Joined
Content Type
Profiles
Forums
Blogs
Events
Downloads
Gallery
Store
Posts posted by kkeiz
-
-
Hello,
I have several variables in the same text frame and I don't want the text to wrap to another line if it doesn't fit. I also don't want to use copyfitting as I don't want the point size to change. The text needs to be truncated if too long.
Variables in text frame:
<FirstName><MiddleName><Last Name>
<Title>
Data File Values:
FirstName: Samantha
MiddleName: M.
LastName: Smithwicks-Jefferson
Title: Administrator; Broker; Realtor; Office; Manager; Owner; President
I have tried the text measurement code from another posted thread and it did work when I wrote the rule for the <Title> line field - but does not work correctly for the NAME line fields which are nested in the same rule - see blue in code below:
__________________________________________________
function TruncateText(text, font, pointSize, width) // width and pointSize in hundredths of points
{
var TM = new FusionProTextMeasure;
TM.useTags = false;
TM.maxWidth = width;
TM.font = font;
TM.pointSize = pointSize;
for (var partial = text; partial; partial = partial.substr(0, partial.length - 1))
{
TM.CalculateTextExtent(partial);
if (TM.textLines <= 1)
return partial;
}
throw "Nothing fits";
}
return TruncateText('<uppercase>' + (NormalizeEntities(Field("FirstName")) + " " +
(Field("MiddleName")) + " " + (Field("LastName")) + '</uppercase>'), "Aller Bold", 1000, FindTextFrame("Untitled1").GetSettableTextWidth());
__________________________________________________
Here is the result when I compose:
SAMANTHA M. SMITH
Administrator; Broker; Realtor; Offi
The name line is breaking too short - it should be truncating the same width (approx.) as the title line above. It does seem to break correctly when I remove <uppercase>, but I need the name in all caps. Also, depending on where I placed <uppercase> I was getting different results in where the names broke.
Any assistance would be appreciated. My apologies for the length of this message!
-
It happens with any Quark document, even when I create a new document with only one simple text frame on it.
-
Hi Alex,
Thank you for replying. Yes, exporting from Quark directly to a PDF works without any issue.
-
We are having an issue exporting with FusionPro VDP Creator 9.0.3 from QuarkExpress 8.5.1. This has been an ongoing issue, my co-worker on a different MAC is also having the same problem. We are on MACs running OS 10.6.8.
Error in Quark:
Export error: An internal error has occurred and processing has stopped. See </Users/kk/Desktop/ID 2_General Business Card/***/kkkkk.log> for more details.
Error In Log:
10/8/13 11:00:18 AM [0x0-0x84084].com.quark.QuarkXPress[2010] Tue Oct 8 11:00:18 Mac-Pro.local QuarkXPress[2010] <Error>: kCGErrorIllegalArgument: CGSRemoveTrackingArea: Invalid window 0x0
If I export my quark layout to a "Project" in Version 7 of Quark, then open in Quark 7.5, I am then able to export with VDP Creator 9.0.3.
I did try moving any ICC Profiles (from Library>ApplicationSupport>PTI>FusionPro>Normalizer>ICC Profiles) over 4KB out of the folder as suggested in a post from September 2013 but it did not make a difference.
Any assistance would be appreciated. Thank you!
Do Not Want Text to Wrap
in Formatting Text
Posted