Jump to content

Recommended Posts

Posted
The goal is move textbox 1 up or down based on the font point size of a copy fit rule in textbox 2. How could i get the font point size from the copyfit rule.
Posted

Your question about "the point size" is not meaningful. Copyfitting does not necessarily result in one single ending point size. You can copyfit a flow which has text in multiple point sizes, and potentially all of the text will grow or shrink to fit the frames in the flow, based on the parameters of the MagnifyAttributes object in the OnCopyfit rule. For instance, you could have a header in 20 point text, followed by a paragraph of 10 point text, and those could end up as 18 and 9 point text after copyfitting. Also, copyfitting doesn't really specify any point sizes at all; it actually places a <magnify> tag (or a series of such tags) before the text in the flow.

 

So, there isn't really any way to know what "the" ending point size is.

 

Let's take a step back, and talk about what the end goal is. What are you really trying to accomplish? A picture might be worth a thousand words here.

Posted (edited)

The ultimate goal is, on a business card there is a Name field (12pt) and a Title field (8.5pt) and a permanent line below the title field. If the Name is too long it will copyfit so it doesn't get cut off or wrap to next line. The fields are vertical aligned top. So the customer would like the title vertically centered between the bottom of the Name and the top of the permanent line. So if the Name reduces size because of copyfit, the title has to move up a little to be centered.

 

NAME HERE

Title Here

-------------------------

 

http://forums.pti.com/data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QN2aHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0MCA3OS4xNjA0NTEsIDIwMTcvMDUvMDYtMDE6MDg6MjEgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NP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WyCegICAgICAgICAgICAgICAgICAg0WL1auTDMTi5Nq2gkX/RnWd/0rX60p+VrfGrxjH/Uf3D+FT0Un1fNeN4PGMf9R/cP4U6KT6c143g8Yx/1H9w/hTopPpzXjeDxjH/Uf3D+FOik+nNeN4PGMf8AUf3D+FOik+nNeN4PGMf9R/cP4U6KT6c143g8Yx/1H9w/hTopPpzXjeDxjH/Uf3D+FOik+nNeN4PGMf8AUf3D+FOik+nNeN4PGMf9R/cP4U6KT6c143g8Yx/1H9w/hTopPpzXjeDxjH/Uf3D+FOik+nNeN4PGMf8AUf3D+FOik+nNeN4PGMf9R/cP4U6KT6c143g8Yx/1H9w/hTopPpzXjeDxjH/Uf3D+FOik+nNeN4PGMf8AUf3D+FOik+nNeN4PGMf9R/cP4U6KT6c143g8Yx/1H9w/hTopPpzXjeDxjH/Uf3D+FOik+nNeN4b69qCwLlCTkwvo+rOPX/dmV0vi3xnf881+tqtAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg//Z

Edited by presser

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