nguyet minh wrote: > Hi, > My document is using itext. But I need use font "Arial", "Dialog", which > itext doesn't support directly. I have to use .ttf file by pointing > directly the full path and file name of .ttf in the Windows folder. I > wonder if there's other way to solve this problem. And in general, how > can we know the "embedding code" for a font?(This is rather out of > itext, sorry :-) )
Register the font directories, and as FontFactory for the registered fonts. You'll get a list of all the names/fonts you can use. > One more question, I set output for the writer as a > ByteArrayOutputStream, not a FileOutputStream. How can I call Print > Dialog (and print directly to printer when user click OK) without > creating a physical pdf file. That's a good question. I don't know any product that allows you to do this in a device independent way. br, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
