[cl-pdf-devel] Problems with international characters

Dmitriy Ivanov divanov at aha.ru
Fri Aug 25 04:42:30 UTC 2006


"Jonathon McKitrick" <jcm at FreeBSD-uk.eu.org> wrote:

| On Thu, Aug 24, 2006 at 09:58:31AM +0400, Dmitriy Ivanov wrote:
| : Please take a look at http://lisp.ystok.ru/cl-pdf.html for a starter.
|
| Very helpful, thank you.
|
| Is it necessary to follow this approach for latin1?  I can't even
| figure out how to get copyright and trademark symbols.  Maybe I need to
| use fonts different from the ones included with the source?

Have you tried (code-char #xA9) and (code-char #xAE)?

As WinAnsiEncoding mentions "copyright" and "registered", you can get them
printed with standard fonts, e.g.

(defun test (&optional (file (current-pathname "test.pdf")))
  (pdf:with-document ()
    (pdf:with-page ()
     (let ((font (pdf:get-font "Helvetica" :win-ansi-encoding)))
         (pdf:draw-text "cl-pdf:  In Helvetica")
         (pdf:set-text-leading 12)
         (pdf:show-text-on-next-line ".>-- ?«°­±??»#\©®")))
    (pdf:write-document file)))

--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru




More information about the cl-pdf-devel mailing list