Formatting Text

Most formatting can be done using regular menu commands, eg: Bold. However, some special commands are provided for modifying certain attributes of the current selection in the active document:

Set Font Size pointSize v1.2

Changes the font size of all selected text to the one specified.

Set Font Name name, [forceFace] v1.1

Changes the font to be the one with the given name. The name can either be a simple font family name “Times New Roman”, a full family and face name “Times New Roman Italic”, or a PostScript font name “TimesNewRomanPSMT”.

If the forceFace argument is a true value then any font face related options (bold and italic) are cleared from the existing text before applying the new font. For example, setting the font name to “Arial” with a forced face will remove any bold attributes from existing text. If not specified then this option is @false and existing font face attributes are left intact.

This command returns @true on success. If the requested font name is unknown, no changes are made and this command returns @false.

Set PostScript Font Name name, [forceFace] v1.1

This works just as the Set Font Name command, but should only be given full PostScript font names (eg: “TimesNewRomanPSMT”). The difference is that this command always succeeds, even if the font name is unknown. This allows applying fonts that don’t otherwise exist, or are not currently installed or enabled.

Set Bold isBold v2.1.5

Ensures the font is bold or not bold, depending on the given argument.

Set Italic isItalic v2.1.5

Ensures the font is italic or not italic, depending on the given argument.

Set Kerning points v1.3

Sets the text kerning, which should be given in points. Positive values expand the characters, while negative values constrict them.

Set Text Color color v1.2

Changes the text color to that of the given Color object.

Set Background Color color v1.2

Changes the text background color to that of the given Color object. Note: not all applications support background colors.

Set Highlight Color color v1.2

Changes the text highlighter color to that of the given Color object. Note: not all applications support arbitrary highlighter colors and the color may appear differently in another application.

Set Text Shadow shadow v3.2

Changes the shadow for text to use the given Shadow object.

Set Underline pattern v2.0

Changes the underline. The value of the argument should be one of the following:

0 = no underline, 1 = single underline, 2 = double underline.

Set Underline Color color v2.0

Changes the color of the underline to that of the given Color object.

Set Strikethrough pattern v2.0

Changes the strikethrough. The value of the argument should be one of the following:

0 = no strike, 1 = single line strike, 2 = double line strike.

Set Strikethrough Color color v2.0

Changes the color of the strikethrough lines to that of the given Color object.

Set Baseline points v2.1.2

Set the text’s baseline, in points. Positive values mean the text is elevated from the natural baseline; negative values mean the text is lowered.

Set Link url v1.3

Adds a hyperlink with the given URL to the selected text. If the URL is the empty string, removes existing hyperlinks from the selected text.

Set First Line Head Indent points v2.0.7

Changes the paragraph’s first line head indent (eg: in left-to-right text, the first line left indent) to the given point value, which cannot be negative.

Set Head Indent points v2.0.7

Changes the paragraph’s head indent (eg: in left-to-right text, the left indent) to the given point value, which cannot be negative.

Set Tail Indent points v2.0.7

Changes the paragraph’s tail indent (eg: in left-to-right text, the right indent) to the given point value, which cannot be negative.

Set Fixed Line Height points v2.0.7

Changes the paragraph’s line height to be fixed at the given value in points, which must be greater than zero.

Set Line Height Multiple multiplier v2.0.7

Changes the paragraph’s line height to be a multiple of the text/font height, which must be greater than zero. For example, a multiplier of 2.0 yields double spacing.

Set Paragraph Spacing Before points v2.0.7

Changes the paragraph’s “before” spacing to the given point value, which cannot be negative.

Set Paragraph Spacing After points v2.0.7

Changes the paragraph’s “after” spacing to the given point value, which cannot be negative.

Set Paragraph Shading Attributes shadingAttrs v2.0.7

Changes the paragraph’s background to use that of the given ShadingAttributes object.

Set Paragraph Line Attributes For Edges shadingAttrs, edgeNames v2.0.7

Changes the appearance of one or more paragraph border edges to the given LineAttributes object. The edge names can be one or more of the names given in the paragraphLineAttributesForEdge command, separated by commas.


Previous Chapter
Modify Text
<<  index  >>
 
Next Chapter
Targeting Selections