[cl-pdf-devel] Re: [cl-typesetting-devel] Unicode?

Peter Seibel peter at gigamonkeys.com
Mon Sep 10 20:20:36 UTC 2007


Peter Seibel wrote:
> Marc Battyani wrote:
> 
>> The generated pdf looks ok for me in acrobat. I can send it to you if 
>> you want. (too big for the list, it just bounced)
> 
> I think I got a copy though since you sent it to me and the list.
> 
>> Have you tried this example?
> 
> I haven't. I'll play around some more.

Okay, I can't get unicode-hello to work on Allegro 8.1 on GNU/Linux with 
any Unicode fonts I have. Perhaps I'm generating bad .ufm files? (I 
tried to build your special ttf2ufm program Marc but couldn't figure out 
how so used another one I found on the web.) Maybe to remove at least 
one variable we can use the same font. I just tried with Gentium, a free 
Unicode font which you can get here:

http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=Gentium_download

Whenever I use Gentium in the place of TimesNewRomanPSMT I get this 
error, even when I set the *unicode-test-string* to something as simple 
as "abc".

Index(s) to array function is/are out of the range of the array.
    [Condition of type TYPE-ERROR]

Restarts:
  0: [ABORT] Return to SLIME's top level.
  1: [ABORT] Abort entirely from this (lisp) process.

Backtrace:
   0: (SWANK:SWANK-DEBUGGER-HOOK #<TYPE-ERROR @ #x74d2ac1a>
        #<Function SWANK-DEBUGGER-HOOK>)
   1: (ERROR TYPE-ERROR :DATUM NIL :EXPECTED-TYPE FIXNUM :FORMAT-CONTROL
             "Index(s) to array function is/are out of the range of the 
array."
             :FORMAT-ARGUMENTS (NIL))
   2: ((METHOD PDF::GET-CHAR-METRICS (T T T)) #\I
       #<PDF:FONT gentium @ #x74b97912>
       #<PDF::UNICODE-ENCODING UnicodeEncoding @ #x71670a2a>)
   3: (PDF:GET-KERNING #\I #\a #<PDF:FONT gentium @ #x74b97912> 36)
   4: (PUT-STRING "abc")
   5: (UNICODE-HELLO)

-Peter

-- 
Peter Seibel                     : peter at gigamonkeys.com
A Billion Monkeys Can't be Wrong : http://www.gigamonkeys.com/blog/
Practical Common Lisp            : http://www.gigamonkeys.com/book/
Coders at Work                   : http://www.codersatwork.com/



More information about the cl-typesetting-devel mailing list