(please keep the conversation on the mailing list)
> -----Original Message----- > From: M. Niedermair [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 21, 2005 3:40 PM > To: Paulo Soares > Subject: Re: [iText-questions] changes on BaseFont > > Am Donnerstag, 21. April 2005 15:52 schrieb Paulo Soares: > > Well, from the xml file create an afm file. It doesn't make sense > > to change the code when you can do that easily. > > Sorry, but i think this is not a good idea. > To convert each font-metric in a afm-file and then parse the afm-file > to get the metrik is nonsens for the performance. Just imagine a font > with a lot of glyphs, kerningdata and ligature. The metric must be > converted in the afm-format (without designsize), then parsed and > after that calculated again with the designsize. You'll see that all that work weights very little in the final result. > It is very easier the create a new class that extends from the > BaseFont. > No, it's not. The font structure in iText was not made to be extended. If you really want to do it put your new class in com.lowagie.text.pdf but you've been warned that it may not work now or in a future release. > For example, if i use a virtual font which 20 glyphs, which > references > to 10 true fonts, i must create 10 afm-files, parse them and so > on... > Big deal! Why don't you do some profiling first? > by > Michael > > ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
