[Cl-pdf-devel] reduce PDF size - font subset?

Attila Lendvai attila.lendvai at gmail.com
Tue Jun 3 23:58:50 UTC 2014


> Eventually i have 2 questions
> 1) is there any way to have Polish letters without embeding fonts?


i think it's only possible through embedding. or at least that was the
case a few years back when i looked into it, it's a PDF limitation.


> 2) if not, is it possible to reduce the size of files? embed subset of the
> fonts?


i believe that to be possible by grabbing a font that is preinstalled
by the pdf reader, dropping all character except that you need, and
then using a your-package:put-string that locally sets the embedded
crippled font when encounters a polish character.

but it's not trivial and there may be many potential traps and even
show-stoppers... so, unless it's a special use-case, i'd just ignore
the extra size and accept it as the sideffect of using pdf.

the beginning of this file has some code on how to load a font:

http://dwim.hu/darcsweb/darcsweb.cgi?r=HEAD%20hu.dwim.presentation;a=headblob;f=/integration/cl-typesetting.lisp

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Until and unless you discover that money is the root of all good, you
ask for your own destruction. When money ceases to be the tool by
which men deal with one another, then men become the tools of men.
Blood, whips and guns--or dollars. Take your choice - there is no
other - and your time is running out.”
	— Ayn Rand (1905–1982), 'Atlas Shrugged' (1957)




More information about the cl-pdf-devel mailing list