Font.getBaseFont(). If it returns null then it's a standard font and you'll need to get the family and style.
Best Regards, Paulo Soares > -----Original Message----- > From: Ming Zhang [SMTP:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2003 22:08 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Absolute Position of Text and Font > Question > > Help! > > At the start of my application, I load all of the system fonts by using > FontFactory.register("fontPath"). When I create my PDF document, I have to > use PdfContentByte class to create my absolute position text. > PdfContentByte class only provide setFontAndSize() which takes in BaseFont > as parameter. However, FontFactory.getFont() only return Font class, not > BaseFont. So there is no way for me to set the font on the PdfCotentByte > object. Is there a way around this problem? Or another solution that I can > load all fonts at startup and set font on the PdfContentByte object? > > Thanks so much!! > > Ming ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions