On Thu, 24 Nov 2016 12:53:32 +0100, zyx wrote: > On Thu, 2016-11-24 at 12:07 +0100, Treeve Jelbert wrote: >> using podofo-0.9.4 with freetype2-2.7 >> >> most of my document looks fine, but the box content is invisible. >> >> By changing the background colour, I can see the text, but changing >> theĀ >> painter colour has no affect, the text >> is always white. >> >> I want black text on a white background. > > Hi, > does the example code work properly for you?
that test seems to work for me, although I had to disable the image tests. as I don't have the resource dir. I based my code on TableTest() in CreationTest.cpp I eventually found the problem I need to add model.SetForegroundColor(PdfColor( 0.0f )); //black I tnow looks ok. Regards > What do you do exactly, like do you do anything like here? > > https://sourceforge.net/p/podofo/code/HEAD/tree/podofo/trunk/examples/helloworld-base14/helloworld-base14.cpp#l276 > > Also, how do you draw the text, using the PdfPainter::DrawText(), > just > like in the example above, or differently? > Bye, > zyx ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users