[NTG-context] Re: [FONTS] Japanese Unicode

Nikolai Weibull context-list at pcppopper.org
Fri Sep 3 17:34:35 CEST 2004

* Taco Hoekwater <taco at elvenkind.com> [Sep 03, 2004 14:40]:
> > Warning: pdfetex (file cork-lmr10): Font cork-lmr10 at 600 not found
> > Warning: pdfetex (file mona30xx-raw-mona): Font mona30xx-raw-mona at 600
> then usually there is a missing map entry for that font, or the map
> file is not loaded by pdftex at all.

OK.  So I was missing a lot of stuff.  Anyway, I got it sort of working.
What I did was

// Update texmf.cnf to list TEXMFLOCAL = /usr/share/texmf/local instead
// of TEXMFLOCAL = /usr/local/share/texmf.
# ls
mona.ttf ttx2enc.xsl
# ttx -t cmap -t name mona.ttf
# xsltproc --param vector "'30'" ttx2enc.xsl mona.ttx > mona30xx.enc
# texfont --makepath --install --vendor=pcp --collection=mona \
> --encoding=mona30xx
# TEXMF=/usr/share/texmf
# echo "Map lm.map" > $TEXMF/web2c/updmap.cfg
# updmap
# echo "map +mona30xx-pcp-mona.map" > $TEXMF/pdftex/config/pdftex.cfg
# mkdir $TEXMF/dvips/local
# cp mona30xx.enc $TEXMF/dvips/local/
# cp $TEXMF/local/fonts/map/mona30xx-pcp-mona.map $TEXMF/pdftex/config/
# texhash
# texexec mona30xx-pcp-mona.tex
# gpdf mona30xx-pcp-mona.pdf
// Stare with incredible disappointment at the result.

At least some of the glyphs came out alright, but a lot of them are
missing.  For the rest I get little gray squares.

For example, mona30xx.enc lists

/glyph00462 % 0x30aa  KATAKANA LETTER O

yet that symbols appears as a gray square.  What gives?

Further Questions:

1) Eventhough the above procedure seems to work somewhat well, it's
still rather complicated and I don't understand why texfont doesn't copy
the .enc file to the enc/ directory it creates.

2) Why doesn't pdftex find the map file in $TEXMF/local/fonts/map?  I've
tried manipulating $TEXMF/web2c/texmf.cnf, changing the following:

TEXFONTMAPS = .;$TEXMF/fontname;$TEXMF/fonts/map

but that didn't do it, even though 'kpsewhich --show-path=map' seems to
pick it up.

3) Why doesn't pdftex find the .enc file once copied to the enc/
directory?  Why do I have to place it under $TEXMF/dvips/?

Still, thanks for the heads-up on pdftex not finding the .map file.

::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::

More information about the ntg-context mailing list