I use the Graphics object to render text to an image but nothing is drawn.
image.SaveAs("C:/Temp/test1.png");
Graphics g(image);
g.setFont(font);
g.setColour( Colours::red );
g.drawSingleLineText( "hello", 0, 0 );
image.SaveAs("C:/Temp/test2.png");
Both images are empty.
The font looks like this:
The image looks like this:
The font is not the problem as this also does not work when I change the font to Verdana.
Am I missing a step?
Thanks for any feedback.
Dan