PDF export does not subset fonts

Bug #336646 reported by Guillaume Millet
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Low
Unassigned

Bug Description

fonts in PDF exported from Inkscape are not subsetted.
Configuration :
- Kubuntu 8.10 with proposed and backports repositories;
- inkscape 0.46+devel, built Feb 2 2009;
- libcairo.so.2.10800.0 in libcairo2_1.8.0-0ubuntu1_i386.deb.

Update 18-06-2009: still not subsetted on Kubuntu 9.04, Inskape pre-0.47 (PPA), libcairo 1.8.6-1ubuntu2.

Revision history for this message
bbyak (buliabyak) wrote : Re: [Bug 336646] [NEW] PDF export does not subset fonts

we need an example file demonstrating this, and your cairo version

Revision history for this message
Guillaume Millet (guimillet) wrote :

$ pdffonts example.pdf
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
FreeSerif CID TrueType yes no yes 5 0
NimbusRomanNo9L Type 1 yes no yes 6 0

description: updated
Revision history for this message
bbyak (buliabyak) wrote : Re: [Bug 336646] Re: PDF export does not subset fonts

thanks - if you attach the source svg as well it would help

Revision history for this message
Guillaume Millet (guimillet) wrote :
description: updated
tags: added: export fonts pdf
tags: added: exporting
removed: export
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Ubuntu 9.04, Inkscape rev. 22025.

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Guillaume Millet (guimillet) wrote :

Still present in Inkscape rev. 22583 on Ubuntu 10.04 Beta.

Revision history for this message
Guillaume Millet (guimillet) wrote :

New behavior in Inkscape 0.48.0 r9654 on Kubuntu 10.10, with libcairo2 version 1.10.0-1ubuntu2.

$ pdffonts example_0.48.pdf
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
TFEOFM+FreeSerif CID TrueType yes yes yes 5 0
KDHGYS+NimbusRomanNo9L Type 1 yes yes yes 6 0

But the pdf produced is about the same, even bigger (49.3 KiB instead of 49.1 KiB before).
After passing it in gs, it becomes much smaller (7.2 KiB). The command I used:
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=example_after_gs.pdf -f example_0.48.pdf

Revision history for this message
Guillaume Millet (guimillet) wrote :
su_v (suv-lp)
tags: added: cairo
Revision history for this message
Adrian Johnson (ajohnson-redneon) wrote :

Cairo PDF has always subsetted fonts. However older versions of cairo did not prepend the subset tag (the six random letters) to the font name. pdffonts looks for the 6 random letters followed by a '+' sign to identify subsetting. So before cairo 1.10, pdffonts incorrectly reported that fonts were not subsetted.

The very large reduction in file size after passing through gs is because the Type 1 font was converted to a CFF font.

Revision history for this message
Guillaume Millet (guimillet) wrote :

Thanks for the clear explanation!

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.