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

Re: Bug#178712: tetex-bin: mktexpk handles ttf fonts with gsftopk, which breaks on CJK



Danai SAE-HAN (韓達耐) <danai.sae-han@skynet.be> wrote:

> frank> However, as somebody completely ignorant of cjk-latex I still do not
> frank> understand how I can test whether the problem still exists.  Can you
> frank> give a small test document, a list of packages to install and the
> frank> commands? 
> frank> 
> frank> Maybe Anthony knows what this is all about, but I would rather not
> frank> reassign the bug without actually having seen it...
>
>
> There is an example file called Big5.tex in the cjk-latex package.
> (usr/share/doc/cjk-latex/examples/Big5.tex)
> You should also install tfm-arphic-bsmi00lp, which contains all the
> TFM, AFM and .enc files.
> Simply latex the file, and xdvi should produce the correct packaged
> fonts, otherwise it will create a "missfont.log".
>
> If there are any font problems (missing TFM's, different names in
> the font definition files, etc.), then pdflatex will of course also
> have problems too.

Indeed, I get an error here:

(/usr/share/texmf/tex/latex/CJK/Bg5/c00bsmi.fd)kpathsea: Running mktextfm bsmilp03
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input bsmilp03
This is METAFONT, Version 2.71828 (Web2C 7.5.4)

kpathsea: Running mktexmf bsmilp03
! I can't find file `bsmilp03'.
<*> ...ljfour; mag:=1; nonstopmode; input bsmilp03
                                                  
Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; nonstopmode; input bsmilp03
                                                  
Transcript written on mfput.log.
grep: bsmilp03.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input bsmilp03' failed to make bsmilp03.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font C00/bsmi/m/n/12/03=bsmilp03 at 12.0pt not loadable: Metric (TFM) file no
t found.
<to be read again> 
                   relax 
l.21 \noindent 

There doesn't seem to be a file bsmilp03 in Debian.  Consequently, I
don't get to the point where the truetype font is/was converted to pk
for dvips.  What am I doing wrong?

>
> However, if you modify pdftex.cfg to include arphic.map, it will use
> the TrueType font directly and embed (parts of) them in the PDF file,
> instead of relying on TFM, PFB or other types.
> cjk-latex installs the map file in /etc/texmf/dvips/arphic.map.

The tfm files are needed for PDF, too - they contain the information for
TeX how much space the glyphs take, and are therefore needed for line
breaking. 

Regards, Frank
-- 
Frank Kuester
Inst. f. Biochemie der Univ. Zuerich
Debian Developer



Reply to: