[cl-pdf-devel] Fonts?

Marc Battyani marc.battyani at fractalconcept.com
Fri May 27 22:52:49 UTC 2005


"Peter Seibel" <peter at gigamonkeys.com> wrote:

> So can someone point me to or provide a brief summary of how to use
> new fonts with CL-PDF. I'm deeply ignorant of almost everything to do
> with fonts so please start at the beginning. For instance:
>
>  - In what format do I need to obtain the fonts I want to use?

You need type 1 fonts (a .afm and a .pfb files). There is a true-type to
type 1 converter somewhere.

>  - Where do I save them relative to the cl-pdf/cl-typesetting software?

Where you want. ;-)

>  - What else do I have to do to let cl-pdf/cl-typesetting know about them?

Load the font with #'pdf:load-t1-font

>  - How do I know how refer to them in a call to pdf:get-font?

You give the font name as a string: "Helvetica"
Then you use pdf:set-font with the font you got from pdf:get-font

You can look at the test examples in cl-typesetting. I load and use TeX
fonts for the math layout demo.

Marc





More information about the cl-pdf-devel mailing list