Hi,
I have an app with an roScreen, and I can do a DrawRect, DrawObject, and DrawScaledObject successfully, however when I try DrawText, I get no output from that call.
screen = CreateObject("roScreen", true, 1280, 720)
fontReg = CreateObject("roFontRegistry")
font = fontReg.GetDefaultFont()
screen.DrawText("Hello", 100, 100, &hFF00FF00, font)
screen.SwapBuffers()
also tried drawing text into a region (like the simple2D example) but still no output.
drawingRegion = dfSetupDisplayRegions(screen, 100, 100, 400, 60)
s = drawingRegion.main
s.DrawText("Hello", 100, 100, &hFF00FF00, font)
It's odd that the font and fontReg variables don't seem to contain anything when printing with printAA. However I get the same output from the simple2d sample code -- which does display text correctly.
---- AA ----
Nothing from for each. Looks like : ?roFontRegistry?
------------
---- AA ----
Nothing from for each. Looks like : ?roFont?
------------
Any suggestions for getting DrawText to work?