TextHeight

From SwinGame

TextHeight calculates the height of a string when drawn with a given font.

Where is it: SGSDK_FONT

Contents

Languages

Pascal

function TextHeight(theText: String; theFont: Font): Integer;

C#

public int Text.TextHeight(string theText, Font theFont);

Visual Basic .NET

Public Function Text.TextHeight(ByVal theText As String, ByVal theFont As Font) As Integer

Visual Basic 6

Public Function Text.TextHeight(ByVal theText As String, ByVal theFont As Fonts) As Long

Example

Also See