---
title: "PlayerTextDrawGetFont | open.mp"
description: "فونت متن یک textdraw بازیکن را دریافت کنید."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawGetFont
language: fa
---

# PlayerTextDrawGetFont

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## توضیحات

فونت متن یک textdraw بازیکن را دریافت کنید.

| نام | توضیحات |
| --- | --- |
| playerid | شناسه بازیکن. |
| PlayerText:textid | شناسه textdraw برای دریافت فونت آن. |

## مقادیر بازگشتی

فونت textdraw بازیکن را برمی‌گرداند.

## مثال‌ها

```c
new PlayerText:welcomeText[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "Welcome to my OPEN.MP server");
    PlayerTextDrawFont(playerid, welcomeText[playerid], TEXT_DRAW_FONT_2);
    PlayerTextDrawShow(playerid, welcomeText[playerid]);

    new TEXT_DRAW_FONT:font = PlayerTextDrawGetFont(playerid, welcomeText[playerid]);
    printf("Font: %d", font); // Font: 2
    return 1;
}
```

## توابع مرتبط

-   [CreatePlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/CreatePlayerTextDraw): ایجاد یک textdraw بازیکن.
-   [PlayerTextDrawDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawDestroy): حذف یک textdraw بازیکن.
-   [PlayerTextDrawFont](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawFont): تنظیم فونت یک textdraw بازیکن.
-   [PlayerTextDrawColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawColor): تنظیم رنگ متن در یک textdraw بازیکن.
-   [PlayerTextDrawBoxColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBoxColor): تنظیم رنگ جعبه یک textdraw بازیکن.
-   [PlayerTextDrawBackgroundColor](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawBackgroundColor): تنظیم رنگ پس‌زمینه یک textdraw بازیکن.
-   [PlayerTextDrawAlignment](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawAlignment): تنظیم چینش یک textdraw بازیکن.
-   [PlayerTextDrawLetterSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawLetterSize): تنظیم اندازه حروف متن در یک textdraw بازیکن.
-   [PlayerTextDrawTextSize](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawTextSize): تنظیم اندازه جعبه textdraw بازیکن (یا ناحیه قابل کلیک برای PlayerTextDrawSetSelectable).
-   [PlayerTextDrawSetOutline](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetOutline): تغییر وضعیت حاشیه روی یک textdraw بازیکن.
-   [PlayerTextDrawSetShadow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetShadow): تنظیم سایه روی یک textdraw بازیکن.
-   [PlayerTextDrawSetProportional](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetProportional): تنظیم فاصله متن در یک textdraw بازیکن به نسبت متناسب.
-   [PlayerTextDrawUseBox](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawUseBox): تغییر وضعیت جعبه روی یک textdraw بازیکن.
-   [PlayerTextDrawSetString](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawSetString): تنظیم متن یک textdraw بازیکن.
-   [PlayerTextDrawShow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawShow): نمایش یک textdraw بازیکن.
-   [PlayerTextDrawHide](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerTextDrawHide): مخفی کردن یک textdraw بازیکن.
-   [IsPlayerTextDrawVisible](https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerTextDrawVisible): بررسی اینکه آیا textdraw بازیکن برای بازیکن نشان داده می‌شود.
-   [IsValidPlayerTextDraw](https://omp.itsneufox.com/fa/docs/scripting/functions/IsValidPlayerTextDraw): بررسی اینکه آیا textdraw بازیکن معتبر است.
