This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_SET_TEXT_LETTER_SPACING
|
SVG_SET_TEXT_LETTER_SPACING ( svgObject ; spacing {; unit} ) | ||||||||
Parameter | Type | Description | ||||||
svgObject | SVG_Ref |
![]() |
Reference of text element | |||||
spacing | Real |
![]() |
Letter spacing | |||||
unit | Text |
![]() |
Unit of value | |||||
The SVG_SET_TEXT_LETTER_SPACING command is used to modify the letter spacing for the text object designated by svgObject in addition to the spacing due to the 'kerning' property. If svgObject is not an SVG text object, an error is generated.
The optional unit parameter is used to specify the unit of the spacing value. The default value is "%".
If spacing is -1, the spacing value is set to 'normal'.
See Also: http://www.w3.org/TR/SVG/text.html#LetterSpacingProperty
Examples of spacing variations:
//Reference
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;40;"";36)
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;80;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1)
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;120;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1;"em")
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;160;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1;"px")
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;200;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1;"pt")
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;240;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1;"pc")
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;280;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1;"mm")
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;320;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1;"cm")
$Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;360;"";36)
SVG_SET_TEXT_LETTER_SPACING($Dom_text;1;"in")
Product: 4D
Theme: Text
Number:
65880
Created: 4D v12
4D SVG Component ( 4D v20 R7)