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
This commit is contained in:
jvr 2003-08-29 08:05:39 +00:00
parent 382df6c42a
commit 6628513fe4

View File

@ -623,6 +623,7 @@ class T2OutlineExtractor(SimpleT2Decompiler):
self.closePath() self.closePath()
self.rMoveTo((0, self.popallWidth(1)[0])) self.rMoveTo((0, self.popallWidth(1)[0]))
def op_endchar(self, index): def op_endchar(self, index):
self.closePath()
args = self.popallWidth() args = self.popallWidth()
if args: if args:
from fontTools.encodings.StandardEncoding import StandardEncoding from fontTools.encodings.StandardEncoding import StandardEncoding
@ -633,7 +634,6 @@ class T2OutlineExtractor(SimpleT2Decompiler):
self.pen.addComponent(baseGlyph, (1, 0, 0, 1, 0, 0)) self.pen.addComponent(baseGlyph, (1, 0, 0, 1, 0, 0))
accentGlyph = StandardEncoding[achar] accentGlyph = StandardEncoding[achar]
self.pen.addComponent(accentGlyph, (1, 0, 0, 1, adx, ady)) self.pen.addComponent(accentGlyph, (1, 0, 0, 1, adx, ady))
self.closePath()
# #
# path constructors, lines # path constructors, lines