Hello!

Am Donnerstag, 21. April 2005 16:40 schrieb Paulo Soares:
> (please keep the conversation on the mailing list)

Sorry!

> > 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.

If you want font expansion or character protusion a la pdfTeX 
(microtype.sty), it is neccesary.
In TeX (or ExTeX, a project that will reimplement TeX in Java, see 
http://www.extex.org/ ) the user has the possibility to change the 
values of a font. With your suggestion, i must create on each-tex-run 
afm-files and parse them again, because the user can change the 
values. 
For example, in my latex-book i use 1073 pfb files (text-, mathe and 
symbol-fonts). For each tex-run, i must create 1073 afm-Files and so 
on.

> > 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.

That is the problem. Much harm!
Why do you not define a Interface, which allows to extend the 
fontsystem?

> 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.

In the meantime, is use this method (although it doesnt fit me) and 
later i create my own pdfobjects, what i didn't want to do.

> > 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?

I dont understand, what you mean.

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

Reply via email to