Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions swf/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,17 @@ def export(self, swf, force_stroke=False):
self.fonts = dict([(x.characterId,x) for x in swf.all_tags_of_type(TagDefineFont)])
self.fontInfos = dict([(x.characterId,x) for x in swf.all_tags_of_type(TagDefineFontInfo)])

# Make sure that all fonts have a fontInfos entry
for font_id in self.fonts.keys():
if font_id not in self.fontInfos:
info = TagDefineFontInfo()

# For now, draw characters as paths (instead of using SVG <text> elements)
info.useGlyphText = True

info.codeTable = self.fonts[font_id].codeTable
self.fontInfos[font_id] = info

# GO!
super(SVGExporter, self).export(swf, force_stroke)

Expand Down