Bug#178712: tetex-bin: mktexpk handles ttf fonts with gsftopk, which breaks on CJK
frank> Indeed, I get an error here:
frank> [snip]
frank>
frank> There doesn't seem to be a file bsmilp03 in Debian. Consequently, I
frank> don't get to the point where the truetype font is/was converted to pk
frank> for dvips. What am I doing wrong?
Oops, I forgot to tell you this. cjk-latex does indeed have some
misconfigurations in the .fd files. Strange, because Anthony Fok is
the maintainer of both the TFM package and cjk-latex.
freetype1-tools will install a file called /etc/ttf2pk/ttfonts.map.
Make sure that it contains the following lines:
% AR PL Mingti2L Big5
bsmi@UBig5@ bsmi00lp.ttf
bsmis@UBig5@ bsmi00lp.ttf Slant=0.167
bsmir@UBig5@ bsmi00lp.ttf Rotate=Yes
bsmirs@UBig5@ bsmi00lp.ttf Rotate=Yes Slant=0.167
It should, but you never know... <_<;
Now you have to edit the .fd files: go to
/usr/share/texmf/tex/latex/CJK/Bg5/ and edit c00bsmi.fd.
Change "bsmilp" with "bsmi".
It will look like this:
% Arphic PL TrueType font AR PL Mingti2L Big5 / ShanHeiSun-Light (MingTi)
\DeclareFontFamily{C00}{bsmi}{\hyphenchar \font\m@ne}
\DeclareFontShape{C00}{bsmi}{m}{n}{<-> CJK * bsmi}{}
\DeclareFontShape{C00}{bsmi}{bx}{n}{<-> CJKb * bsmi}{\CJKbold}
This will point all the "bsmi" references to bsmi??.tfm, not
bsmilp??.tfm.
The changes should be reflected immediately without any updating of
the font map files.
I tried contacting Anthony about this, but he seems to be MIA. :<
That's one of the reasons I have created new packages. I'm still
trying to refine it before looking for a sponsor though, so it could
take a while before it reaches the official Debian repositories.
frank> > However, if you modify pdftex.cfg to include arphic.map, it will use
frank> > the TrueType font directly and embed (parts of) them in the PDF file,
frank> > instead of relying on TFM, PFB or other types.
frank> > cjk-latex installs the map file in /etc/texmf/dvips/arphic.map.
frank>
frank> The tfm files are needed for PDF, too - they contain the information for
frank> TeX how much space the glyphs take, and are therefore needed for line
frank> breaking.
OIC. Interesting to know. I should take a closer look at pdflatex to
see the effects of missing TFM files.
Regards
Danai SAE-HAN
韓達耐
--
题目:《棋》
作者:王安石(1021-1086)
莫将戏事扰真情,且可随缘道我赢。
战罢两奁分白黑,一枰何处有亏成。
Reply to: