[reportlab-users] [PATCH] Add TTF Embedding Option

Andy Robinson andy at reportlab.com
Fri Oct 17 02:31:14 EDT 2008


2008/10/16 Yoann Roman <yroman-reportlab at altalang.com>:

> I ran similar tests with Acrobat, and it's doing more behind the scenes

> than it lets on. It switches to embedded subsets, regardless of the

> "Never Embed" list, if any non-CP1252 characters are used and for

> certain CP1252 characters. The latter seems to kick in at the 181 range

> but not for all 181 to 255 code points.


Aha, that makes sense. I have no idea how many glyphs are supported
in the fonts already in Adobe Reader, but if you step outside those,
I guess it needs to embed any extra characters.


> I am. The difference is still pretty large, though. Examples attached

> [stripped]. Acrobat-Arial.pdf [43KB] and ReportLab-Arial.pdf [129KB] are

> the "same" document using all four variants of Arial, embedded. I'm on

> Acrobat 9 but had it generate a 1.3 PDF.

>ReportLab-Arial-Small.pdf

> [45KB] was with setting asciiReadable to 0; it's much smaller although

> I'm not sure I understand all the implications.


This does sound useful after all, as long as it's a new option which is off
by default..


More information about the reportlab-users mailing list