Skip to main content
Version: Next

VP Font to object

VP Font to object ( font : Text ) : Object

ParameterTypeDescription
fontText->Font shorthand string
ResultObject<-Font object

Description

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 in this page for example.

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

Example 1

This code:

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

will return the following $font object:

{

family:arial
size:16pt
}

Example 2

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