This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
VP Font to object

VP Font to object 


 

VP Font to object ( font ) -> Function result 
Parameter Type   Description
font  Text in Font shorthand string
Function result  Object in Font object

The VP Font to object utility command returns an object from a font shorthand string. This object can then be used to set or get font property settings via object notation.

In the font parameter, pass a font shorthand string to specify the different properties of a font (e.g., "12 pt Arial"). You can learn more about font shorthand strings here.

The returned object contains defined font attributes as properties. For more information about the available properties, see the VP Object to font command.

This code:

 $font:=VP Font to object("16pt arial")

will return the following $font object:

{
family:arial
size:16pt
}

See example for VP Object to font.



See also 

4D View Pro Style Objects and Style Sheets
VP Object to font
VP SET CELL STYLE
VP SET DEFAULT STYLE

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language
Number: 9765

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v17 R6

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)