Op 22-12-07 12:20, schreef Liu DongMiao:
> 2007/12/22, "Danai SAE-HAN (韓達耐)" <[EMAIL PROTECTED]>:
>>
>>   $ fontforge -script subfonts.pe cyberbit.ttf cyberbit \
>>     /usr/share/texmf/fonts/sfd/Unicode.sfd
> 
> you can modify subfonts.pe, and remove AddExtrema and Simplify(0, 2) to get
> fast, and you may want to change ScaletoEM(900, 100). For uming and ukai, i
> chang them to (800, 200)

Does that have any visual impact on the quality of the fonts?  If not, then
I'll add a small patch to the Debian build package.  Thanks for the tip!

>>   $ for i in *.pfb
>>     do
>>      echo "$(basename $i .pfb) $(basename $i .pfb) <$i" \
>>      >> cyberbit.map
>>     done
> 
> if you use dvipdfmx, this map file is not needed. Map file is like this:
> `TFMfile' `PS FontName' <`type1 file name'

Indeed, and I would also recommend the use of dvipdfmx.  But I think .map
files are needed for other dvipdf* tools and pdflatex, so I would install
them nevertheless.

>> Put cyberbit.map in /usr/local/share/texmf/fonts/map/dvips/cyberbit/
>> and put *.afm, *.tfm and *.pfb to
>> /usr/local/share/texmf/fonts/{afm,tfm,type1}/cyberbit respectively.
> 
> you just need tfm and pfb..

True, .afm files are not necessary in principle.  Is there actually any use
for AFM fonts nowadays in a TeX(live) distribution?  Or do other, more
modern tools like XeTeX or luaTeX use AFM fonts?  If not, then I could
remove the .afm files from the Debian packages as well.

>> Run "texhash" or "mktexlsr" as root.
>> Now add a file called /etc/texmf/updmap.d/10cyberbit.cfg with the
>> following four lines:
>>
>> ######
>> # 10cyberbit.cfg
>> Map cyberbit.map
>> ######
> 
> just use texhash and mktexlsr as a normal user. if you want to add a map.
> you can
> $ updmap --enable Map *.map
> or just edit  .texmf-config/web2c/updmap.cfg. it is
> $TEXMFCONFIG/web2c/updmap.cfg

If you use texhash as a regular (i.e. non-root) user, then everything will
be installed in ~/texmf/ and work only for this user.

And indeed, I forgot that the *.cfg file in updmap.d/ and the
"update-updmap" are Debian-specific.  Silly me.

>> If c70song.fd already exists on your computer, make sure it's deleted
>> first.  Now make a file
>> /usr/local/share/texmf/tex/latex/CJK/UTF8/c70song.fd
[snip]
>> and run "texhash" as root again.
> 
> FD file is very important.
> FD file, TFM file is most important, then Type 1 font and map.
> if you want to use TTF, you need FD file, TFM file, cid-x.map.

Indeed.  "fd" stands for "font definition", and it is here where the
relation is defined between the name that you use in your LaTeX document
(like "{song}") and the actual name of the fonts (like "cyberbitXX").

For TTF you had to copy the .enc files as well, but I'm not sure if that
still holds true for the more recent TeX distributions.


Best regards


-- 
Danai SAE-HAN (韓達耐)

題目:《讀嚴子陵傳》
作者:楊萬里(1127-1206)

客星何補漢中興,空有清風冷似冰。
早遣阿瞞移漢鼎,人間何處有嚴陵!

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Cjk maillist  -  [email protected]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to