[cl-pdf-devel] Generating a 'TM' character

Jonathon McKitrick jcm at FreeBSD-uk.eu.org
Thu Jan 4 20:07:54 UTC 2007


On Thu, Jan 04, 2007 at 10:10:26PM +0300, Dmitriy Ivanov wrote:
: Hello Jonathon,
: 
: | I'm having trouble with (code-char 8482).  I want to use the basic
: | Times font in cl-pdf, but I cannot get this symbol to appear.  Any
: | suggestions?  I get an error 'invalid array index' on char-metrics.
: 
: I would recommend the following specialization on get-char-metrics to map
: the Unicode char code to code belonging [0-255] range (untested):
: 
: (defmethod get-char-metrics ((char (eql #.(code-char 8482)) font encoding)
:   (aref (characters font) #x99))

I must be missing something, because I cannot find get-char-metrics anywhere
in cl-pdf.


Jonathon McKitrick
--
My other computer is your Windows box.



More information about the cl-pdf-devel mailing list