Member variable XbpFont():nominalPointSize Foundation

Determines the type size of the font in points.

Attribute: EXPORTED
Data type: Numeric (0)
Description

The instance variable :nominalPointSize contains a numeric value indicating the average type size of the font in points (1 point = 1/72 inch). When the method :create() is called, the font object attempts to select a font of the size specified that most closely matches the properties specified in the font object's other instance variables. After the method :create() is executed, the instance variable :nominalPointSize contains a numeric value indicating the average type size of the font selected.

The font height is also affected by the :height property which can be used to specify the character height in arbitrary units. :height normally has precedence over the :nominalPointSize property. Therefore, if a point size is defined via :nominalPointSizebefore :create() is executed, the instance variable :heightmust be set to 0. Furthermore, in order to prevent distortion of the characters in the font selected, :width should also be set to 0. This causes the font to be created using the default character width for the point size specified.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.