I have an app whereby I wish to over-print an existing .png file with
text using a particular font. From ubuntu, I have installed my .ttf
file but I am unclear how to call upon this font during drawText. Here
is my code;
> virtual void paintEvent( Wt::WPaintDevice * paintDevice )
> {
> WPainter painter(paintDevice);
>
> WPainter::Image image( "FM-1003.png",1275,1650 );
>
> painter.drawImage( 0.0, 0.0, image );
>
> font.setFamily( WFont::Cursive, "'Delphine'" );
> font.setSize(18);
> painter.setFont( font );
> painter.setPen( WPen(Wt::red) );
> painter.drawText( 50,250,100,100,Wt::AlignLeft,"John Q. Nobody");
>
The font I'm interested in is here;
> http://sjfonts.sourceforge.net/
--
~mark
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest