Description
This tag activates/deactivates font shadowing.
Parameters and typographical expressions
1.Toggle. 0 or 1. 0 makes the text not shadowed. 1 makes the text shadowed.
2.Extra character spacing in 1/1000 of EMW. If ommited, defaults to 50.
3.SHIFT right the shadow in 1/1000 of EMW. If ommited, defaults to 60. If negative, creates shadow on the left side
4.SHIFT down the shadow in 1/1000 of EMW. If ommited, defaults to 50. If negative, creates shadow on the top side.
Tag Effects
Effects are visible in the WYSIWYG pane of the Articles main tab or on a page on the Pages main tab.
Type and scope
Can be inserted anywhere in text. Local for the paragraph where is inserted, therefore effects cease on the end of that paragraph. May be globalized, by appending the >default< tag after, but only before any printable character.
See also
|
Shadow of text can be read and set in the character editing dialog box or panel, the Color and effects tab. The built-in command Ted4.EditSetText displays the character editing dialog box. The related system script is EditSetText. The built-in command Ted4.ToggleTextPanel switchtoggle toggles the non-modal version of the character editing dialog box (can remain open while editing text). The related system script is ToggleTextPanel. One of above listed scripts is usually assigned to the Type menu, Character, Characters Palette, and to the pen icon in the formatting toolbar. |
The related system script is EditFontShadow. It toggles shadow text. It is usually assigned to the Type menu, Character, Shadow. |
In Ted4 & Fred4 it is possible to get and set the shadow of text by the TextStatus object. To get shadow status: dim objTS = Text.GetTextStatus if objTS.HasShadow then msgbox (objTS.Shadow) end if It returns true if shadow is set, and false if text is normal. To set the shadow status: dim objTS = Text.GetTextStatus objTS.Shadow = 1 Text.SetTextStatus (objTs) Following commands are available: •Three read-only properties ShadowEnlarge, ShadowMoveX and ShadowMoveY to the TextStatus scripting object that return the value of the three new parameters for the text at the position. •A method SetShadow(bOn,nEnlarge,nMoveX,nMoveY) to the TextStatus scripting object that sets all the shadow parameters at once. •Setting the Shadow property of the TextStatus scripting object sets the other three shadow parameters to their default values. •Added three read-only properties ShadowEnlarge, ShadowMoveX and ShadowMoveY to the TextStatus scripting object that return the value of the three new parameters. |
A tag >shadow 1,50,60,-50< will create a shadow ABOVE the text. If one of the new parameters is not specified in the markup tag its value is left unchanged - so a >shadow 1< tag will start the shadow with the current parameters (that are the format default ones if there are no other tags modifying them, that are in turn the default values if the format has not been changed).