PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Writing text using PocketFrog 0.8.1

Hi,

I'm trying to write some text on the screen using PocketFrog. I have followed the example of the Conan tutorial.

Display* display = GetDisplay();
HDC hdc = m_background->GetDC();

RECT rcString;
rcString.top = 250;
rcString.left = 0;
rcString.right = 240;
rcString.bottom = 285;
if (hdc) {
SetBkColor(hdc, RGB(248, 252, 248));
SetBkMode(hdc, TRANSPARENT);
SetTextColor(hdc, 0x0000ff);
DrawText(hdc, TEXT("Hello"), -1, &rcString;, DT_CENTER|DT_BOTTOM);
}

display->Update();

but this doesn't work... did I miss something
2nd option is to use DrawVGAText. But I don't know what is the format of the font files.

How do I make fonts that can be used with DrawVGAText function? Any good editor recommendations
jweldin · 16 Oct 2004, 02:44 UTC — vga fonts
I coded up a quick&dirty; vga font viewer to preview all the vga fonts if anyone is interested I could post it.

I am planning on creating a vga font editor unless someone can show me a free existing one.