hns - 日記自動生成システム - Version 2.19.9

先月 2011年11月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
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
これなら既に入っている。



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)