[cairo] [PATCH] type1-subset: always include subroutine 4 (hint replacement idiom)

Adrian Johnson ajohnson at redneon.com
Fri Dec 21 20:11:37 PST 2012


On 22/12/12 12:05, David Maxwell wrote:
> This patch is an update to commit 0d5f637 that addressed Flex/ hint
> replacement subroutines and type 1 font subsetting.  The previous
> commit ensured that subroutines 0 to 3 were always included in a
> subsetted  type 1 font.  If these subroutines are absent, the
> cgpdftops CUPS filter on OS X crashes.  It turns out that subroutine
> 4, although not part of the official Type 1 spec for  Flex/ hint
> replacement, is idiomatically used along with subroutines 0-3.  If
> subroutine 4 is absent,  cgpdftops crashes similarly.  I missed this
> case in testing because subroutine 4 was coincidentally already being
> included in the test cases.

Pushed. Thanks for the patch.


More information about the cairo mailing list