On Nov 27, 5:49*pm, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
wrote:
> wial wrote:
> > Hi
>
> > I am relatively new to Java, and need to create an applet that will
> > print a document with a specific font-type and font-size.
>
> > I succeeded in printing a document, but I don't know how to correctly
> > specify the font-type and font-size. I searched on the Internet, but
> > there are many different ways explained and they all seem a bit
> > cumbersome to me (last time I did printing was with the Visual Basic
> > Printer object, which is really straightforward).
> > The font-type and font-size would be valid for the whole document, I
> > do not need to change them along the way.
>
> > Would someone be able to provide me with some code that I can work
> > with, or at least point me in the right direction?
>
> > Thank you
> > Willem Alberda
>
> Printing is exactly like drawing. *Just set the font (and its size) with
> Graphics.setFont().
>
> --
>
> Knute Johnson
> email s/nospam/knute2008/
>
> --
> Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
> * * * * * * *------->>>>>>http://www.NewsDemon.com<<<<<<------
> Unlimited Access, Anonymous Accounts, Uncensored Broadband Access- Hide quoted text -
>
> - Show quoted text -
Thank you.
Willem
|