AFPL Ghostscript 8.1x と TrueType

名前: Hirata
日時: 2003-12-11 20:02:34
IPアドレス: 61.25.158.*

dvipdfmx-20031207 で和文 TrueType フォントを埋め込むと、 AFPL Ghostscript 8.11 で 不具合が生じることが判明しました。 これは明らかに gs のバグなのですが、現在の dvipdfmx で対処するのはちょっと厄介です。 Ghostscript に詳しい方がちゃんとした修正をして下さることを期待して、その場しのぎのパッチ を張り付けておきます。 --- gs_ttf.ps.orig Tue Sep 23 07:27:50 2003 +++ gs_ttf.ps Thu Dec 11 19:12:34 2003 @@ -1063,16 +1063,11 @@ % The cmap isn't of any use even if it is present. % Just construct an identity CIDMap covering all the glyphs. - /CIDCount numloca - /CIDMap numloca maxstring le { - % Use a single string. - numloca 2 mul string 0 .fill_identity_cmap - } { - % We must use 2 strings. - maxstring 2 mul string 0 .fill_identity_cmap - numloca maxstring sub 2 mul string maxstring .fill_identity_cmap + /CIDCount 16#ffff % Dummy + /CIDMap + 16#ffff string 0 .fill_identity_cmap + 16#ffff string 32768 .fill_identity_cmap 2 array astore - } ifelse /GDBytes 2 .dicttomark --- pdf_font.ps.orig Tue Sep 23 07:27:50 2003 +++ pdf_font.ps Thu Dec 11 19:44:24 2003 @@ -725,11 +725,7 @@ % Length exceeded max string size, use an array of two strings % stack: filepos fontres font mapstream mapstream CIDCount 1 index 32767 string readstring not { - ( **** Warning: CIDToGIDMap length of ) pdfformaterror - dup length 2 div cvi =string cvs pdfformaterror - (, expected length of ) pdfformaterror - exch =string cvs pdfformaterror - (.\n) pdfformaterror + exch pop exch pop } { 3 1 roll 32767 sub string readstring pop

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)