JustificationProperties
These property values are used to apply justification to paragraph text.
These justification features can be seen in the dialog in the Paragraph panel's flyout menu item labeled "Justification...". They are expressed with an object literal with the following properties (values are percentages):
Copied to your clipboard1{2 // Minimum, Desired and Maximum percentage of normal word spacing3 wordSpacingMinimum: number,4 wordSpacingDesired: number,5 wordSpacingMaximum: number,6 // Minimum, Desired and Maximum percentage of normal letter spacing7 letterSpacingMinimum: number,8 letterSpacingDesired: number,9 letterSpacingMaximum: number,10 // Minimum, Desired and Maximum percentage of normal glyph scaling11 glyphScalingMinimum: number,12 glyphScalingDesired: number,13 glyphScalingMaximum: number14 // Percentage of type size to use for auto leading15 autoLeadingAmount: number16}
Unless it's been set, the justificationFeatures value is null
.
The setter allows you to set individual properties: the missing ones will be
either filled with the default values or left untouched.
Name | Type | Default | Range | Min Version | Description |
---|---|---|---|---|---|
autoLeadingAmount | number | 120 | 0..500 | 24.1 | Auto leading amount |
glyphScalingDesired | number | 100 | 50..200 | 24.1 | Desired glyph scaling - Must be between Minimum and Maximum or equal |
glyphScalingMaximum | number | 100 | 50..200 | 24.1 | Maximum glyph scaling - Must be greater than or equal to Minimum. |
glyphScalingMinimum | number | 100 | 50..200 | 24.1 | Minimum glyph scaling - Must be less than or equal to Maximum. |
letterSpacingDesired | number | 0 | 0..500 | 24.1 | Desired letter spacing - Must be between Minimum and Maximum or equal. |
letterSpacingMaximum | number | 0 | 0..500 | 24.1 | Maximum letter spacing - Must be greater than or equal to Minimum. |
letterSpacingMinimum | number | 0 | 0..500 | 24.1 | Minimum letter spacing - Must be less than or equal to Maximum. |
wordSpacingDesired | number | 100 | 0..1000 | 24.1 | Desired word spacing - Must be between Minimum and Maximum or equal. |
wordSpacingMaximum | number | 133 | 0..1000 | 24.1 | Maximum word spacing - Must be greater than or equal to Minimum. |
wordSpacingMinimum | number | 80 | 0..1000 | 24.1 | Minimum word spacing - Must be less than or equal to Maximum. |