Mark Hall wrote:

On Saturday 30 April 2005 19:56, Sai Mylavarapu wrote:


I spent some time with the source. Looks like, FontFactory.getFont() is
trying to resolve the font specified in the xml. Since, there is no
Arial defined in the base fonts..it's setting the font to unknown. By
the time, it reaches RtfMapper class to get Rtf corresponding elements
it has font "unknown" as a result it's always defaulting to
TimesNewRoman.


I've looked at the problem and have come to the same conclusion as you. If nobody else on this list has a possible solution, I would recommend that you modify the Font class so that it does what you need.

I think you are forgetting to register the Font with FontFactory.
Once you have done this, check the name of the registered fonts.
See the tutorial about Fonts and FontFactory.
br,
Bruno


------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to