4D v16

SVG_SET_TEXT_WRITING_MODE

Home

 
4D v16
SVG_SET_TEXT_WRITING_MODE

SVG_SET_TEXT_WRITING_MODE 


 

SVG_SET_TEXT_WRITING_MODE ( svgObject ; writingMode ) 
Parameter Typ   Beschreibung
svgObject  SVG_Ref in Reference of text element
writingMode  Text in 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")

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Text
Nummer: 65878

 
GESCHICHTE 

Erstellt: 4D v12

 
ARTIKELVERWENDUNG

4D SVG ( 4D v16)