From 6628513fe486630d2ee30f6dd5da354a20c26eda Mon Sep 17 00:00:00 2001 From: jvr Date: Fri, 29 Aug 2003 08:05:39 +0000 Subject: [PATCH] T2: I'm not sure if the seac-variant of the endchar operator may be combined with actual outlines, but if it is, we need to do the closePath before the components are added. git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@440 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/misc/psCharStrings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/misc/psCharStrings.py b/Lib/fontTools/misc/psCharStrings.py index c9a42051d..61fa8c064 100644 --- a/Lib/fontTools/misc/psCharStrings.py +++ b/Lib/fontTools/misc/psCharStrings.py @@ -623,6 +623,7 @@ class T2OutlineExtractor(SimpleT2Decompiler): self.closePath() self.rMoveTo((0, self.popallWidth(1)[0])) def op_endchar(self, index): + self.closePath() args = self.popallWidth() if args: from fontTools.encodings.StandardEncoding import StandardEncoding @@ -633,7 +634,6 @@ class T2OutlineExtractor(SimpleT2Decompiler): self.pen.addComponent(baseGlyph, (1, 0, 0, 1, 0, 0)) accentGlyph = StandardEncoding[achar] self.pen.addComponent(accentGlyph, (1, 0, 0, 1, adx, ady)) - self.closePath() # # path constructors, lines