Code:
VOID Escrever(INT x, INT y, DWORD color, DWORD colorBorda, int larguraBorda, LPD3DXFONT g_pFont, CONST CHAR *fmt, ...)
{
RECT FontPos1 = { x - larguraBorda, y, x + 120, y + 16 };
RECT FontPos2 = { x, y - larguraBorda, x + 120, y + 16 };
RECT FontPos3 = { x + larguraBorda, y, x + 120, y + 16 };
RECT FontPos4 = { x, y + larguraBorda, x + 120, y + 16 };
RECT FontPos = { x, y, x + 120, y + 16 };
CHAR buf[1024] = {'\0'};
va_list va_alist;
va_start(va_alist, fmt);
vsprintf_s(buf, fmt, va_alist);
va_end(va_alist);
g_pFont->DrawText(NULL, buf, -1, &FontPos1, DT_NOCLIP | DT_CENTER, colorBorda);
g_pFont->DrawText(NULL, buf, -1, &FontPos2, DT_NOCLIP | DT_CENTER, colorBorda);
g_pFont->DrawText(NULL, buf, -1, &FontPos3, DT_NOCLIP | DT_CENTER, colorBorda);
g_pFont->DrawText(NULL, buf, -1, &FontPos4, DT_NOCLIP | DT_CENTER, colorBorda);
g_pFont->DrawText(NULL, buf, -1, &FontPos, DT_NOCLIP | DT_CENTER, color);
}