This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_SET_TEXT_WRITING_MODE
|
SVG_SET_TEXT_WRITING_MODE ( svgObject ; writingMode ) | ||||||||
Parameter | Type | Description | ||||||
svgObject | SVG_Ref |
![]() |
Reference of text element | |||||
writingMode | Text |
![]() |
Direction of writing | |||||
The SVG_SET_TEXT_WRITING_MODE command is used to set whether the writing direction for the text object designated by svgObject will be left to right, right to left or bottom to top. If svgObject is not an SVG text object, an error is generated.
The writingMode parameter can have one of the following values: "lr-tb", "rl-tb", "tb-rl", "lr", "rl", "tb" or "inherit ". Otherwise, an error is generated.
Writing from right to left:
//Frame
SVG_New_rect($Dom_SVG;5;5;210;310;0;0;"blue";"none")
//Text
$Dom_text:=SVG_New_textArea($Dom_SVG;$Txt_sample;10;10;200;300;"Baghdad 'Arial Unicode MS'";25)
SVG_SET_TEXT_WRITING_MODE($Dom_text;"rl")
Product: 4D
Theme: Text
Number:
65878
Created: 4D v12
4D SVG Component ( 4D v20 R7)