4D v14

SVG_SET_FONT_FAMILY

Home

 
4D v14
SVG_SET_FONT_FAMILY

SVG_SET_FONT_FAMILY 


 

SVG_SET_FONT_FAMILY ( svgObject ; font {; font2 ; ... ; fontN} )  
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
font  String in Font name

The SVG_SET_FONT_FAMILY command can be used to specify the font for the SVG object having the svgObject reference. If svgObject does not reference a valid element, an error is generated.

The font parameter contains the name of the font to be used. When several names are passed, the command automatically builds the list of font family names and/or generic family names.

Example  

Passing several font names:

 SVG_SET_FONT_FAMILY(svgObject;"Lucida grande";"Sans-serif")
  // will build the following list: " 'Lucida grande' 'Sans-serif'"

 
PROPERTIES 

Product: 4D
Theme: Text
Number: 65952

 
HISTORY 

Created: Composant 4D SVG v11.3
Modified: 4D v12

 
ARTICLE USAGE

4D SVG Component ( 4D v13)
4D SVG Component ( 4D v12)
4D SVG Component ( Composant 4D SVG v11.4)
4D SVG Component ( 4D v14 R2)
4D SVG Component ( 4D v14)
4D SVG Component ( 4D v14 R3)
4D SVG Component ( 4D v14 R4)