Letter from Werner LEMBERG
At the time ttf2tfm has been written, the excellent fontforge font editor wasn't available. Today, I use a different route which will be directly available in TeXLive. Below you can find the steps to convert the Chinese bsmi00lp.ttf into Unicode encoded Type 1 subfonts; additionally, virtual fonts for Big 5 encoding and fonts with vertical glyph representation forms are created. The scripts are generic so that you can use other encodings as well (I've done the same for simplified Chinese and for Korean).
Those scripts are part of the CJK 4.6.0 version, in directory utils/subfonts; *.pe files are for fontforge, *.pl are for perl. Note
that fontforge can be compiled even on Windows platforms (but without the GUI).
Finally, I suggest that you direct further questions to the cjk mailing list so that others can participate (the snippet below is from
an answer sent to this list).
Werner
======================================
For the bsmi00lp font in TeXLive, I've created *Unicode* encoded real
fonts which are mapped to virtual Big 5 fonts. Using the font names
from TeXLive, we have
# create Unicode encoded subfonts `bsmiu00' .. `bsmiuff'
fontforge -script subfonts.pe bsmi00lp.ttf bsmiu Unicode.sfd
# create font `bsmiuv' with all vertical glyph representation forms
fontforge -script vertical.pe bsmi00lp.ttf bsmiuv
# create font `bsmiuvr' which has the same structure as `bsmiuv',
# but normal glyphs instead of vertical representation forms
fontforge -script vertref.pe bsmi00lp.ttf bsmiuvr
# create a virtual font `bsmilpv' which is a clone of `bsmiuv'
perl clonevf.pl bsmiuv bsmilpv
# create virtual fonts `bsmilp00' .. `bsmilp55' in Big 5 encoding
# which use Unicode encoded `bsmiuXX' subfonts as raw fonts
# and `cjkbig5' as the `CODINGSCHEME' parameter value
perl uni2sfd.pl bsmiu UBig5.sfd bsmilp cjkbig5
# create entries for the extended font definition file
# `c00bsmi.fdx' (which uses Big 5 encoding), with `bsmiuvr' as
# the reference font
perl makefdx.pl bsmiuvr.afm UBig5.sfd c00bsmi.fdx
# create entries for the extended font definition file
# `c70bsmi.fdx' (which uses Unicode encoding), with `bsmiuvr' as
# the reference font
perl makefdx.pl bsmiuvr.afm Unicode.sfd c70bsmi.fdx
Directory structure
teTeX3 requires the elegant directory structure, so in /usr/local/share/texmf/
fonts/cmap/UTF8-UCS2
fonts/enc/truetype/cyberb/cyberb??.enc
fonts/map/dvips/truetype/cyberbps.map
fonts/map/truetype/cyberb.map
fonts/sfd/Unicode.sfd
fonts/tfm/truetype/cyberb/cyberb??.tfm
fonts/truetype/Cyberbit.ttf
fonts/type1/truetype/cyberb/cyberb??.pfb
tex/latex/CJK/UTF8/c70cyberb.fd
cyberb.map
cyberb00 <cyberb00.enc <Cyberbit.ttf
...
cyberbps.map
cyberb00 cyberb00 <cyberb00.pfb
...
Configuration files
/usr/share/texmf/fonts/map/dvipdfm/cid-x.map
cyberb@Unicode@ Identity-H :0:Cyberbit.ttf
updmap.cfg
Map cyberb.map
dvips/config/config.ps
p +cyberbps.map
xdvi/xdvi.cfg
dvipsmap cyberbps.map
(from http://ymei.freeshell.org/WebWiki/Computer/CJK-LaTeX-UTF8.html. Please refer to this url if you want to write a piece of reference.)
(Those out-of-date information have not been forwarded.)
Pingback: cyberbit - StartTags.com