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:
parent
382df6c42a
commit
6628513fe4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user