Saltar al contenido principal

PlayerTextDrawLetterSize

Description

Sets the width and height of the letters in a player-textdraw.

NameDescription
playeridThe ID of the player whose player-textdraw to set the letter size of
PlayerText:textidThe ID of the player-textdraw to change the letter size of
Float:widthWidth of a char.
Float:heightHeight of a char.

Returns

This function does not return any specific values.

Examples

new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
PlayerTextDrawLetterSize(playerid, welcomeText[playerid], 3.2, 5.1);

PlayerTextDrawShow(playerid, welcomeText[playerid]);
return 1;
}

Notes

tip

When using this function purely for the benefit of affecting the textdraw box, multiply 'Y' by 0.135 to convert to TextDrawTextSize-like measurements

tip

Fonts appear to look the best with an X to Y ratio of 1 to 4 (e.g. if x is 0.5 then y should be 2).