Code from sample- make font
and
It write only "hello"...
ReturnCode from font.createFont is ReturnCode::0k
why?
- Code:
Font font;
HRESULT InitialApplication::onInit(Surface* pBackBuffer, Application* application)
{
//Load logo image
surface.create(GLEDPLAY_LOGO, TEXT("LOGO"));
Surface fontSurface;
Surface fontAlpha;
rett=fontSurface.create(TEXT("fontsample.gif"));
fontAlpha.create(TEXT("alphafontsample.gif"));
font.createFont(TEXT(" ABCDEFGHIJKLMNOPQRSTUVWXYZ"), &fontSurface;, &fontAlpha;);
fontSurface.free();
fontAlpha.free();
return ReturnCode::OK;
}
and
- Code:
HRESULT InitialApplication::onNextFrame(Surface* pBackBuffer, Panel* panel)
{
pBackBuffer->fillRect(RGB(0, 0, 0));
pBackBuffer->drawText(20, 20,
Font::getSystemFont(),
Font::LEFT_ALIGN, TEXT("Hello!"));
pBackBuffer->drawText(20,55,&font;,Font::CENTER_ALIGN, TEXT("WELCOME"));
return ReturnCode::OK;
}
It write only "hello"...
ReturnCode from font.createFont is ReturnCode::0k
why?