Skip to end of metadata
Go to start of metadata

This component is deprecated.

Developers should use roFont methods (GetOneLineHeight and GetOneLineWidth).

 

The roFontMetrics object allows you to get display size information for a specific font returned by the roFontRegistry.Get() method.

Supported Interfaces

Description

In order to use this object, you must first initialize the roFontMetrics object with a font name that had been previously registered with the roFontRegistry, then the total rendered size of strings in that font can be returned by roFontMetrics.Size().
This object is created with a string that represents the font to use in its size calculations:

  • CreateObject("roFontMetrics", String font)
Example: simple use of roFontRegistry and roFontMetrics to render a string on the roImageCanvas

 

 

 

  • No labels