Set_Text_Spacing

Functions

void Set_Text_Spacing (double spacing)
 Allows you to space out or squeeze the text strings in a segment. More...
 
void UnSet_Text_Spacing (void)
 Removes all settings established by a previous call to Set_Text_Spacing(). More...
 

Detailed Description

Function Documentation

◆ Set_Text_Spacing()

void Set_Text_Spacing ( double  spacing)

Allows you to space out or squeeze the text strings in a segment.

Parameters
spacing- Scale factor. A factor of "0.5" results in spacing the starting-point of consecutive letters half as far apart; 2.0 makes them twice as far apart.

DETAILS

Text spacing is normally a built-in function of the Text Font, adjusted by the Text Scaling. As it lays down consecutive characters, the system has in mind a distance to move between the starting point of one character and the starting point of the next. This distance can be adjusted with a Text Scaling to be either more or less than usual.

Specifically, the distance the system would normally expect to move from the beginning of one letter to the beginning of the next is always multiplied by the current Text Spacing factor before it's applied. In particular, a Text Spacing of 0.0 results in the letters being all on top of each other, and a Spacing of 2.0 results in a string that takes twice as much room as it otherwise would, minus the width of the last letter.

NOTE

There is no method implemented yet to change spacing factors within a single text string.

NOTES

RESTRICTIONS

See also
Insert_Text, Set_Text_Path, Set_Text_Font.

◆ UnSet_Text_Spacing()

void UnSet_Text_Spacing ( void  )

Removes all settings established by a previous call to Set_Text_Spacing().

DETAILS

No additional details. See Set_Text_Spacing()