[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Need help: how to package fonts for TeX in debian?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,

I am the maintainer of the ttf-arphic-{ukai|uming} packages in Debian
and the upstream author of those fonts.

The fonts are Pan-CJK Unicode fonts and contain glyphs in the BMP as
well as in Planes 2 and 15 (PUA).
Therefor it is not possible to generate tfm files with ttf2tfm like the
existing tfm packages for the original arphic fonts do.
Instead I asked Werner Lemberg for help and he pointed me to his latest
CJK-latex package and the subfonts utils within that package.

I used it on my fonts and it took my PC 36 (!) hours to generate the
.enc, .afm, .pfm and .tfm files for my 4 fonts.

The files are here: http://debian.linux.org.tw/~arne/tfm.tar.bz2 (70MB!)

The fonts names are:
ukai	AR PL ZenKai Uni
ukaimbe	AR PL ZenKai Uni MBE
uming	AR PL ShanHeiSun Uni
umingmbe	AR PL ShanHeiSun Uni MBE

I asked Werner how to install the fonts in my TeX system...
but it seems that in Debian the directories and file locations are quite
different...

Can someone please give me a helping hand to produce debian packages for
those fonts?

Werner's reply was basically this:
- -------------
1. delete the .enc files, as they are not needed.
2. gzip the .afm files (they are also not needed, but usually kept along
with the .pfb and .tfm files)
3. put the .afm, .pfb and .tfm files into their proper locations in the
local TEXMF tree (best with subdirectories)
4. generate MAP files (uming00 AR-PL-ShanHeiSun-Uni-00 < uming00.pfb)
(is this correct?)
5. put the MAP files into fonts/map/dvips
6. in TEXMF/dvips create config files: config.uming, which looks like
p +uming01.map
p +uming02.map
...
7. register the Map files in TEXMF/web2c/updmap.cfg
Map uming01.map
8. run the updmap script
9. make FD files in TEXMF/tex/latex
    \DeclareFontFamily{C70}{arne}{\hyphenchar \font\m@ne}

    \DeclareFontShape{C70}{uming}{m}{n}{<-> CJK * uming}{}
    \DeclareFontShape{C70}{uming}{bx}{n}{<-> CJKb * uming}{\CJKbold}

    \endinput

And in LaTeX use it like this:
   \usepackage{CJK}

   ...

   \begin{CJK}{UTF8}{uming}
   ...
   \end{CJK}

- -----------

Now, how to do this in Debian? and how to produce a package for this? Or
should this go into the latex-cjk /cjk-latex stuff?

Thanks for help

Arne
- --
Arne Götje (高盛華) <arne@linux.org.tw>
PGP/GnuPG key: 1024D/685D1E8C
Fingerprint: 2056 F6B7 DEA8 B478 311F  1C34 6E9F D06E 685D 1E8C
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFIzEfbp/QbmhdHowRAkmkAJkBCEPdD2Bv+dVu786JkUJUxT005ACfd2zL
+9JU/LwPe7K1blaql163zpA=
=SFBY
-----END PGP SIGNATURE-----



Reply to: