Intrinsic-135 GetFontInfo

Top  Previous  Next

135: FontData:= GetFontInfo(Handle, String);

 

This intrinsic return a pointer to an integer array containing information about the text specified by String as rendered in the image specified by Handle. The data returned are:

 

FontData(0) - Holds the width of the specified string in pixels.

FontData(1) - Holds the height of the specified string in pixels.

 

Related Intrinsics:
 

SetFontFace

SetFontStyle

SetFontColor

CopyFont

TextOut