root/trunk/thirdparty/cl-pdf/unicode-readme.txt

Revision 2636, 1.1 kB (checked in by hans, 10 months ago)

add cl-pdf for pixel->pdf converter

Line 
1 ;;; cl-pdf copyright 2002-2005 Marc Battyani see license.txt for the details
2 ;;; You can reach me at marc.battyani@fractalconcept.com or marc@battyani.net
3 ;;; The homepage of cl-pdf is here: http://www.fractalconcept.com/asp/html/cl-pdf.html
4
5 Unicode readme
6
7 To use Unicode fonts you need to have the font metrics and the character
8 encoding of the font. For this you must have an unicode font metrics (.ufm file).
9
10 You can generate it with a special version of afm2pt1:
11 http://www.fractalconcept.com/fcweb/download/ttf2pt1-src.zip
12
13 I've put a windows executable here:
14 http://www.fractalconcept.com/fcweb/download/ttf2pt1.zip
15
16 You can get the original version here:
17 http://ttf2pt1.sourceforge.net/
18
19 Use it like this (using the times font as an example):
20 ttf2pt1 -a -F times.ttf times
21 This will generate the needed times.ufm file.
22
23 You can then load the font:
24 (pdf:load-ttu-font #P"times.ufm" #P"times.ttf")
25
26 And now you can use it:
27 PDF 222 > (pdf:get-font "TimesNewRomanPSMT")
28 #<pdf:font timesnewromanpsmt 25558C54>
29
30 To see the exact name of the font, just look inside the .ufm file.
31
32 If you only need some characters of a font, you can use fontforge to tweak it.
33
Note: See TracBrowser for help on using the browser.