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.