universal unicode font for reportlab

Ross Ridge rridge at csclub.uwaterloo.ca
Wed Sep 10 12:28:55 EDT 2008


Duncan Booth  <duncan.booth at suttoncourtenay.org.uk> wrote:
>I thought that usually when you embed a font in a PDF only the glyphs which 
>are actually used in the document get embedded. Unfortunately a quick test 
>with reportlab seems to show that it doesn't do that optimisation: it looks 
>as though it just embeds the entire font.

Yah, PDF files normally only contain an embedded subset of the fonts used.
It might possible to use Ghostscript's ps2pdf command (which can take a
PDF file as input) to strip out the unused glyphs from the embedded fonts.

					Ross Ridge

-- 
 l/  //	  Ross Ridge -- The Great HTMU
[oo][oo]  rridge at csclub.uwaterloo.ca
-()-/()/  http://www.csclub.uwaterloo.ca/~rridge/ 
 db  //	  



More information about the Python-list mailing list