I should add (since I'm already filling everyone's Inboxes today) that,
in addition to using the standard "hundredths of points" units (7200 =
one inch), you can also specify the size-type properties of the
FusionProTextMeasure object, such as the maxWidth property, as string
values with a unit specification.  For example, the following are
equivalent:

    var tm = new FusionProTextMeasure;
    tm.maxWidth = 7200;
    tm.maxWidth = "72 pt";
    tm.maxWidth = "72"; // default units are points (pt)
    tm.maxWidth = "1 in";
    tm.maxWidth = "2.54 cm";
    tm.maxWidth = "6p0"; // picas and points

(Come on, let's hear some love from you old-time printers out there for
taking picas as an input unit!)

These are the same types of unit specifications that we handle in
space-type edit controls on our dialogs, such as the Frame palettes, the
Insert Page dialog, the Imposition tab of the Composition Settings, etc.
If you use an invalid unit specification, or something that's not a
number, an exception will be thrown.

Furthermore, you can set the useFloatingPointSizes property on the
FusionProTextMeasure object to true to make it treat numeric values as
points instead of hundredths of points.  For instance:

    var tm = new FusionProTextMeasure;
    tm.maxWidth = 7250; // 72.5 points
    tm.useFloatingPointSizes = true;
    tm.maxWidth = 72.5; // 72.5 points

You can change this behavior globally in your job, for all
FusionProTextMeasure objects, by setting the prototype property, like
so:

  FusionProTextMeasure.prototype.useFloatingPointSizes = true;

Okay, back to work....

Dan


+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how!
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to