TypefaceFunctionsSetTypefaceAlignment

Typeface

File formatFunctions
DisplayTypefaceGetTypefaceDimensionGetTypefaceHeightGetTypefaceWidthLoadTypefaceSetTypefaceAlignmentSetTypefaceColorSetTypefaceItalicSetTypefaceKerningSetTypefaceSizeSetTypefaceSpacing

SetTypefaceAlignmentFUNCTION

Description

Sets the vertical and horizontal alignment of the given typeface.

Syntax

SetTypefaceAlignment( Typeface.i, AlignH.f [, AlignV.f] )

Parameters

Typeface The number of the typeface.
AlignH Horizontal alignment between 0.0 (left aligned) and 1.0 (right aligned) or one of the following constants:
#TypefaceAlign_Left Left aligned
#TypefaceAlign_Center Center aligned
#TypefaceAlign_Right Right aligned
#PB_Ignore Does not change the horizontal alignment
AlignV Vertical alignment between 0.0 (top aligned) and 1.0 (bottom aligned) or one of the following constants:
#TypefaceAlign_Top Top aligned
#TypefaceAlign_Middle Middle aligned
#TypefaceAlign_Bottom Bottom aligned
#PB_Ignore Does not change the vertical alignment

Return value

None

See also

Union Bytes | Login