Font.Based on another font

Syntax:

New Font(<Font>, <FontName>, <Size>, <Bold>, <Italics>, <Underscore>, <StrikeOut>, <Scale>)

Parameters:

<Font> (required)

Type: Font.
Font providing the basis for generating a new font.

<FontName> (optional)

Type: String.
System's designation for the font. If the parameter is not assigned, then it can not be changed in relation to the source font.
Default value: Empty string.

<Size> (optional)

Type: Number.
Font size. If a parameter is not specified, then it cannot be changed with regards to the source font.
Default value: -1.

<Bold> (optional)

Type: Boolean.
Boldfaced font flag. If a parameter is not specified, then it cannot be changed with regards to the source font.

<Italics> (optional)

Type: Boolean.
Italic font flag. If a parameter is not specified, then it cannot be changed with regards to the source font.

<Underscore> (optional)

Type: Boolean.
Underscored font flag. If a parameter is not specified, then it cannot be changed with regards to the source font.

<StrikeOut> (optional)

Type: Boolean.
Struck out font flag. If a parameter is not specified, then it cannot be changed with regards to the source font.

<Scale> (optional)

Type: Number.
Sets value for the Scale property.
Default value: 100.

Description:

Creates font based on an existing font. All parameters can be taken from the source font, whereupon the parameters indicated in the Designer take priority over the source parameters.

Example:

Bold = New Font(Template.Area(1,1).Font,,,True);

    

1C:Enterprise Developer's Community