Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Stuart Jansen
On Mon, 2007-02-26 at 16:27 +0100, Bruno Lowagie (iText) wrote: *snip* > you are trying to catch a mouse using an elephant. (Is that even > an expression?) It's close to something I've heard before, but all that's coming to mind is: "You're trying to swat a fly with a bazooka." -- Stuart Jansen

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Bruno Lowagie
Marco wrote: >> Why do you want to add text to a PDF >> using java.awt.Image? > I need Canvas for insert some mathematics formulas inside text, and it > works. It would work ever better if you used PdfGraphics2D. > N.B. I don't want use iText after create a Canvas, I don't understand: you wan

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Marco
> Why do you want to add text to a PDF > using java.awt.Image? I need Canvas for insert some mathematics formulas inside text, and it works. My problem of Font is not most important, but I hoped for resolve it. N.B. I don't want use iText after create a Canvas, I want only set the same Font fo

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Bruno Lowagie (iText)
Marco wrote: > This is an example of the code I use. Reading your code it is now clear to me that you're on the wrong forum. There is no iText code involved when you create a java.awt.Image based on text written to a canvas. You should post this question on a Java forum. > As com.lowagie.text use

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Marco
>> When I make a pdf file, the images from Canvas (that contains strings >> too) and the strings that I directly insert in pdf have differents Font, >> and I don't like this. > Counter-question: have you mapped the Java Font > with the correct font file? Or are you just using > the DefaultFontM

Re: [iText-questions] Use default iText Font for a Frame

2007-02-26 Thread Bruno Lowagie (iText)
Marco wrote: > It is possible to use default iTeXt font for my Frame? > > When I make a pdf file, the images from Canvas (that contains strings > too) and the strings that I directly insert in pdf have differents Font, > and I don't like this. Let me guess: you are using PdfGraphics2D to print

[iText-questions] Use default iText Font for a Frame

2007-02-25 Thread Marco
It is possible to use default iTeXt font for my Frame? When I make a pdf file, the images from Canvas (that contains strings too) and the strings that I directly insert in pdf have differents Font, and I don't like this. Marco --