4D v16

SVG_New_vertical_text

Home

 
4D v16
SVG_New_vertical_text

SVG_New_vertical_text 


 

SVG_New_vertical_text ( parentSVGObject ; Text {; x {; y {; Schrift {; Größe {; Stil {; Ausrichtung {; color {; rotation}}}}}}}} ) -> Funktionsergebnis 
Parameter Typ   Beschreibung
parentSVGObject  SVG_Ref in Reference of parent element
Text  Text in Text to insert
Lange Ganzzahl in Coordinate on X axis
Lange Ganzzahl in Coordinate on Y axis
Schrift  String in Font name
Größe  Ganzzahl in Size of characters in points
Stil  Ganzzahl in Style of characters
Ausrichtung  Ganzzahl in Alignment
color  String in Text color
rotation  Lange Ganzzahl in Angle of rotation of text
Funktionsergebnis  SVG_Ref in Reference of SVG text object

The SVG_New_vertical_text command inserts the text of text vertically in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated.

The optional x and y parameters can be used to specify the position on the X and Y axis of the bottom left corner of the first character of text.

The optional font and size parameters can be used to specify the font and its size, in points, to be used. When these parameters are not passed, the text will be written in Times New Roman 12 pt.

The optional style parameter gives the character style used. In this parameter, you must pass one of the following styles, or a combination of several of these values:

0 = Plain
1 = Bold
2 = Italic
4 = Underline
8 = Strikethrough

The optional alignment parameter can be used to set the type of alignment applied to the text drawn. You can pass on eof the following values:

2 = Align left
3 = Center
4 = Align right

The optional color parameter contains the name of the font color. (For more information about colors, please refer to the ”Colors and Gradients” section).

The optional rotation parameter can be used to specify the rotation to be applied to the text.

 $SVG:=SVG_New
 $textID:=SVG_New_text($SVG;"Hello world";10;12)
 $textID:=SVG_New_vertical_text($SVG;"Hello world";22;3;"";-1;-1;Center;"blue")



Siehe auch 

SVG_New_text
SVG_New_tspan

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Text
Nummer: 65957

 
GESCHICHTE 

Erstellt: Composant 4D SVG v11.3

 
ARTIKELVERWENDUNG

4D SVG ( 4D v16)