Skip to content

Commit

Permalink
TTFont names seems to be an actual attribute that requires bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemacfarlane committed Oct 11, 2014
1 parent 9ba9d78 commit bcdc7fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/z3c/rml/document.py
Expand Up @@ -133,6 +133,7 @@ class RegisterTTFont(directive.RMLDirective):

def process(self):
args = self.getAttributeValues(valuesOnly=True)
args[0] = args[0].encode('utf-8')
font = ttfonts.TTFont(*args)
pdfmetrics.registerFont(font)

Expand Down

0 comments on commit bcdc7fb

Please sign in to comment.