Hi, I did some (quite heavy) changes on pdftex to support font expansion, so it can be used easily. So far the font expansion feature requires that user must be able to create expanded tfm (eg cmr10+10.tfm). Now font expansion can be used without expanded tfm. One can say: \font\f=cmr10 \pdffontexpand\f 20 20 5 autoexpand and pdftex will create those expanded tfm like cmr10+10, cmr10-20, etc. automatically. This also works for virtual fonts (like ptmr8t). The sources tarball is available at http://vntex.sourceforge.net/private/thanh/pdftex/pdftex-2004_05_02.tar.bz2 [to Hans Hagen: the djgpp binary of pdfxtex is avail. at the same location] I didn't submit this version to the texlive repository yet, because I changed the sources quite a lot and it can introduce new bugs. For those interested in details of automatical font expansion: 1) a tfm is expanded by copying the metrics from the base tfm, then character widths, kerns and italic corrections are adjusted. 2) for virtual fonts: nothing is changed apart from local font definitions (they are automatically expanded just like (1)). This means that some accents can be misplaced by a very small amount (0.01--0.01pt). If this amount seems too much to you, then the wokraround is to create expanded tfm manually. A minimal test file can look like: ======================================= \pdffontexpand\font 20 20 5 autoexpand \pdfadjustspacing 2 <A few long paragraphs here> \bye ======================================= Then open the pdf file in acroreader and look at File->Info->Fonts, or use pdffonts (comes from xpdf) to see whether the body font is expanded. What is font expansion good for? 1) if you care about micro-typography like even word spacing and greyness of your pages; 2) if you are typesetting narrow columns and would like to get rid of those overfull/underfull boxes or frequent hyphenations with none (or liltle) manual tweaking. Feedbacks are welcome very much. Thanh PS: this version also fixes the problem with \mag
On 2004-05-04 09:45:25 +0700, The Thanh Han wrote:
PS: this version also fixes the problem with \mag
How? I.e. what do you think is the correct behaviour? Best regards Martin -- Martin Schröder, ms@artcom-gmbh.de ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10 http://www.artcom-gmbh.de
On Tue, May 04, 2004 at 10:43:25AM +0200, Martin Schroeder wrote:
On 2004-05-04 09:45:25 +0700, The Thanh Han wrote:
PS: this version also fixes the problem with \mag
How? I.e. what do you think is the correct behaviour?
that every dimen register is affected by \mag, including \pdfpagewidth, \pdfpageheight and \pdf[hv]origin. They can be set just like other dimen registers, ie if you want true dimension, you must set it after \mag has been set. Thanh
Hi Thanh,
I did some (quite heavy) changes on pdftex to support font expansion, so it can be used easily. So far the font expansion feature requires that user must be able to create expanded tfm (eg cmr10+10.tfm). Now font expansion can be used without expanded tfm. One can say:
\font\f=cmr10 \pdffontexpand\f 20 20 5 autoexpand
and pdftex will create those expanded tfm like cmr10+10, cmr10-20, etc. automatically. This also works for virtual fonts (like ptmr8t).
The sources tarball is available at
http://vntex.sourceforge.net/private/thanh/pdftex/pdftex-2004_05_02.tar.bz2
[to Hans Hagen: the djgpp binary of pdfxtex is avail. at the same location]
got it ... works great! this will make hz really usable! i'll see if i can test some big documents. Hans
http://vntex.sourceforge.net/private/thanh/pdftex/pdftex-2004_05_02.tar.bz2
What is the difference between Thanh's archive and the 1.20a-rc1 version (except the new font expansion)? What contains this 800 kB extra filesize? Greetings, Bence
The sources tarball is available at
http://vntex.sourceforge.net/private/thanh/pdftex/pdftex- 2004_05_02.tar.bz2
Before I spend too much time checking : are your changes limited to texk/web2c/pdf(x)tex ? Nothing else in kpathsea or whatever library ? Fabrice
yes my changes didn't touch anything outside the pdftexdir/ directory Thanh On Thu, May 06, 2004 at 11:29:46AM +0200, Fabrice Popineau wrote:
The sources tarball is available at
http://vntex.sourceforge.net/private/thanh/pdftex/pdftex- 2004_05_02.tar.bz2
Before I spend too much time checking : are your changes limited to texk/web2c/pdf(x)tex ? Nothing else in kpathsea or whatever library ?
Fabrice
participants (5)
-
Fabrice Popineau
-
Hans Hagen
-
Martin Schröder
-
Nagy Bence
-
The Thanh Han