get_extents_for_direction


Description:

[ Version ( since = "1.1.3" ) ]
public FontExtents get_extents_for_direction (Direction direction)

Fetches the extents for a font in a text segment of the specified direction.

Calls the appropriate direction-specific variant (horizontal or vertical) depending on the value of direction.

Parameters:

direction

The direction of the text segment

extents

The FontExtents retrieved

font

Font to work upon