Mailing List Archive


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

[tlug] CJK Latex: embed Type1 fonts in my pdf file



Dear TLUG,

In my quest to produce with latex a world-readable pdf file with some 
japanese text in it, I have installed CJK, set up the cyberbit font and 
managed to produce pdf files, but not with embedded Type1 fonts. Could 
someone with better tetex knowledge point out what I did wrong?

I first installed CJK, then I downloaded cyberbit.ttf and followed these 
instructions [1] to create from it a variety of files (.tfm, .enc, 
.pfb), except that I placed all files in /usr/local/share/texmf/*.  Then 
I tried to compile the test file [2]:

latex sample-utf8.tex
latex sample-utf8.tex
dvips -q -t a4 -P pdf -G0 sample-utf8.dvi
ps2pdf -dCompatibilityLevel=1.3 -dPDFSETTINGS=/prepress sample-utf8.ps

which produced a pdf file that could be read by xpdf and acroread, but 
not gpdf. A check in acroread's menus showed that some fonts where 
Type3. I don't want this.

After googling a little I found two relevant pages: with [3] I could 
generate a .afm file for my font and put it in the correct directory 
/usr/local/share/texmf/fonts/type1/cyberbit/; In [4] under 4.b. there 
are some indications to make dvips know about the Type1 font. So after 
looking for the correct files on my distribution I edited 
/etc/texmf/updmap.d/00updmap.cfg and added the following line at the 
end:

Map cyberbit.map

next, I ran the two commands:

sudo update-updmap
sudo updmap

because it complained that it didn't find the file I copied 
/usr/local/share/texmf/pdftex/config/cyberbit.map to 
/usr/share/texmf/dvips/cyberbit/cyberbit.map and ran the commands again

going back to the sample latex file, I run again the dvips command, and 
get the following error:

Page 1 may be too complex to print

and gv won't display anything. So there is an error in my map. After 
some searching I do some replace the lines in cyberbit.map:

before:
cyberbit00 <cyberbit.ttf <cyberbit00.enc

after:
cyberbit00 cyberbit <cyberbit00.enc <cyberbit.pfb

now on the sample latex file, dvips produces the following error:

Error: module writet1 (file cyberbit.pfb): unexpected end of file

I don't really know what to investigate now.. Does anyone have a clue 
for making dvips aware of my Type1 font?

cheers,

Evan

[1] http://kile.sourceforge.net/Documentation/html/cjk.html
[2] http://www.math.nus.edu.sg/aslaksen/cs/sample-utf8.tex
[3] http://www.tldp.org/HOWTO/TT-Debian-5.html
[4] http://www.ece.uci.edu/~chou/unicode-tex.html

ps: my system is Ubuntu 5.10

Attachment: signature.asc
Description: Digital signature


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links