|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||||
2011年11月07日(月) 旧暦 [n年日記] [更新:"2011/11/07 23:28:51"]#1 [pkgsrc] metafont
ascgrp.mf を少し変更して文字を追加している。しかし、
dvipdfmx ではその追加した文字が認知されていない。
ktrace -t n dvipdfmx hoge.dviして見ると、中に 5371 1 dvipdfmx NAMI "/please/set/osfontdir/in/the/environment/"こんな文字が入っていたりする。でも多分これは一応関係なくて、 追加した文字の *.pfb (Printer Font Binary) が足りないことが問題かと思う。 それで pkgsrc から fonts/mftraceを追加して、次のようにして見たが、正常終了しない。
t-105@makoto 22:55:35/111107(..hoge/work)% mftrace ascgrp
mftrace 1.2.15
Font `ascgrp'...
Unknown encoding `SPECIAL GRAPHIC FONT'; assuming tex256.
Using encoding file: `/usr/pkg/share/texmf-dist/fonts/enc/dvips/base/tex256.enc'
Running Metafont...
Tracing bitmaps... [32][48][49][50][51][64][65][66][67][68][69][70][71][72][73][74][75][76][77][97][98]
Assembling raw font to `ascgrp.pfa.raw'... t1asm: charstring buffer overflow
error: t1asm: command exited with value 256
Traceback (most recent call last):
File "/usr/pkg/bin/mftrace", line 1411, in <module>
main()
File "/usr/pkg/bin/mftrace", line 1407, in main
do_file (filename)
File "/usr/pkg/bin/mftrace", line 1390, in do_file
make_outputs (basename, options.formats, encoding)
File "/usr/pkg/bin/mftrace", line 834, in make_outputs
raw_name = assemble_font (fontname, 'pfa', 1)
File "/usr/pkg/bin/mftrace", line 816, in assemble_font
system ('t1asm %s mftrace.t1asm %s' % (asm_opt, shell_escape_filename (outname)))
File "/usr/pkg/bin/mftrace", line 172, in system
error (msg)
File "/usr/pkg/bin/mftrace", line 114, in error
raise _ ("Exiting ... ")
TypeError: exceptions must be old-style classes or derived from BaseException, not str
t-105@makoto 22:55:51/111107(..hoge/work)%
(文字を全部用意していないことが問題 .. ではないと思いたいが)
現に元の ascgrp はこれより少ない訳だから。
mftrace -V ascgrp としたら、次のような文字が見える ... Opening pipe `/usr/pkg/bin/gf2pbm -n 98 -s ascgrp.7227gf' Invoking `potrace -u 1 -q -c --eps --output=char.eps char.pbm ' Invoking `fontforge -usage > pfv 2>&1 ' Assembling raw font to `ascgrp.pfa.raw'... Invoking `t1asm --pfa mftrace.t1asm ascgrp.pfa.raw' t1asm: charstring buffer overflow error: t1asm: command exited with value 256そんなあなたに MetaPost かな、と思ったが、どこにあるのかな。 print/web2c/PLIST:bin/mpostこれなら既に入っている。 ( つっこみ )
|
最近の日記 2026年02月28日 ・my first script-fu 2026年01月29日 ・Die Fledermaus at New National theatre 2026/01/29 2025年12月25日 ・pbulk 11.99.3 (emacs30) 2025年11月22日 ・crash dump 2025年10月25日 ・recover from disk error | ||