4D v16

SVG_SET_TEXT_KERNING

Home

 
4D v16
SVG_SET_TEXT_KERNING

SVG_SET_TEXT_KERNING 


 

SVG_SET_TEXT_KERNING ( svgObject ; kerning {; unit} ) 
Parameter Typ   Beschreibung
svgObject  SVG_Ref in Reference of text element
kerning  Zahl in Letter spacing
unit  Text in Unit of spacing value

The SVG_Get_text command is used to modify the kerning for the text object designated by svgObject. If svgObject is not an SVG text object, an error is generated. 

The optional unit parameter is used to specify the unit of the kerning value. The default value is "%".

If kerning is -1, the kerning value is set to 'auto'.

Note: Under Windows, the implementation is limited to text from left to right and top to bottom (disabled for right to left text) and to the 'text' and 'tspan' elements; under Mac OS, support is not limited.

See Also: http://www.w3.org/TR/SVG/text.html#KerningProperty

Examples of kerning 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_KERNING($Dom_text;0,5)
 $Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;120;"";36)
 SVG_SET_TEXT_KERNING($Dom_text;1)
 $Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;160;"";36)
 SVG_SET_TEXT_KERNING($Dom_text;1,5)
 $Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;200;"";36)
 SVG_SET_TEXT_KERNING($Dom_text;2)
 $Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;240;"";36)
 SVG_SET_TEXT_KERNING($Dom_text;1,5)
 $Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;280;"";36)
 SVG_SET_TEXT_KERNING($Dom_text;1)
 $Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;320;"";36)
 SVG_SET_TEXT_KERNING($Dom_text;0,5)
 $Dom_text:=SVG_New_text($Dom_SVG;"Hello world !";20;360;"";36)
 SVG_SET_TEXT_KERNING($Dom_text;0)



Siehe auch 

SVG_SET_TEXT_LETTER_SPACING

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Text
Nummer: 65881

 
GESCHICHTE 

Erstellt: 4D v12

 
ARTIKELVERWENDUNG

4D SVG ( 4D v16)