Hi, We have a Unicode CJK font, when we use that in PostScript with selectfont and try to view the Postscript document with GhostScrpt, we are getting the 'rangecheck' error. This is happening both on windows and unix, in gs 8.54 and 8.53. Thanks Subbu.
Created attachment 2420 [details] PostScript document with CJK font reference PostScript document, which refers to the CJK font and has the problem.
Created attachment 2421 [details] Error text file This is the error we get when we try to view the PS file with GS.
Initially we had only one font (amwt_f1.ttf). To improve the PS transformation, we requested our font vendor to split the font. They split the font into 2 subsets, one with all CJK characters and one with non-CJK characters. Now with the CJK font we are getting the 'rangecheck' error while loading the font. Please provide the FTP site details, so that I can upload the font.
I've modified the test file to use AMWT_F1_CJK_test.TTF and the file fails with the same error message, so I do not require the 'test2' font.
The problem was an 'off by one' condition in the "get_from_stringarray" procedure. *** /HEAD/lib/gs_ttf.ps Wed Aug 2 12:04:50 2006 --- ./gs_ttf.ps Mon Aug 21 09:37:10 2006 *************** *** 493,499 **** get } { exch { % o () ! 2 copy length gt { length sub } { exch get exit --- 493,499 ---- get } { exch { % o () ! 2 copy length ge { length sub } { exch get exit
Update customer ID for tracker