reportlab pdfmetrics ttfont postscript error
up vote
1
down vote
favorite
I'm experiencing an error when I try to register a font through pdfmetrics. Is there something I do not take into account or is it the font that could be the problem?
MY CODE
from reportlab.pdfbase import pdfmetrics
pdfmetrics.registerFont(TTFont('GothamRoundedMedium', str(app_config.TEMPLATE_FONTS_DIRECTORY) + '/GothamRoundedMedium_21022.ttf'))
ERROR TYPE:
TTFError
ERROR STRING:
TTF file "/var/www/templates/fonts/GothamRoundedBold_21016.ttf": postscript outlines are not supported
ERROR FILE
/usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py
ERROR LINE
228
in file /usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py on line 228 the following error is raised:
if version==0x4F54544F:
raise TTFError('%s file "%s": postscript outlines are not supported'%(self.fileKind,self.filename))
reportlab
New contributor
add a comment |
up vote
1
down vote
favorite
I'm experiencing an error when I try to register a font through pdfmetrics. Is there something I do not take into account or is it the font that could be the problem?
MY CODE
from reportlab.pdfbase import pdfmetrics
pdfmetrics.registerFont(TTFont('GothamRoundedMedium', str(app_config.TEMPLATE_FONTS_DIRECTORY) + '/GothamRoundedMedium_21022.ttf'))
ERROR TYPE:
TTFError
ERROR STRING:
TTF file "/var/www/templates/fonts/GothamRoundedBold_21016.ttf": postscript outlines are not supported
ERROR FILE
/usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py
ERROR LINE
228
in file /usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py on line 228 the following error is raised:
if version==0x4F54544F:
raise TTFError('%s file "%s": postscript outlines are not supported'%(self.fileKind,self.filename))
reportlab
New contributor
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm experiencing an error when I try to register a font through pdfmetrics. Is there something I do not take into account or is it the font that could be the problem?
MY CODE
from reportlab.pdfbase import pdfmetrics
pdfmetrics.registerFont(TTFont('GothamRoundedMedium', str(app_config.TEMPLATE_FONTS_DIRECTORY) + '/GothamRoundedMedium_21022.ttf'))
ERROR TYPE:
TTFError
ERROR STRING:
TTF file "/var/www/templates/fonts/GothamRoundedBold_21016.ttf": postscript outlines are not supported
ERROR FILE
/usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py
ERROR LINE
228
in file /usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py on line 228 the following error is raised:
if version==0x4F54544F:
raise TTFError('%s file "%s": postscript outlines are not supported'%(self.fileKind,self.filename))
reportlab
New contributor
I'm experiencing an error when I try to register a font through pdfmetrics. Is there something I do not take into account or is it the font that could be the problem?
MY CODE
from reportlab.pdfbase import pdfmetrics
pdfmetrics.registerFont(TTFont('GothamRoundedMedium', str(app_config.TEMPLATE_FONTS_DIRECTORY) + '/GothamRoundedMedium_21022.ttf'))
ERROR TYPE:
TTFError
ERROR STRING:
TTF file "/var/www/templates/fonts/GothamRoundedBold_21016.ttf": postscript outlines are not supported
ERROR FILE
/usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py
ERROR LINE
228
in file /usr/local/lib/python3.5/dist-packages/reportlab/pdfbase/ttfonts.py on line 228 the following error is raised:
if version==0x4F54544F:
raise TTFError('%s file "%s": postscript outlines are not supported'%(self.fileKind,self.filename))
reportlab
reportlab
New contributor
New contributor
New contributor
asked Nov 8 at 9:15
mlund86
613
613
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
mlund86 is a new contributor. Be nice, and check out our Code of Conduct.
mlund86 is a new contributor. Be nice, and check out our Code of Conduct.
mlund86 is a new contributor. Be nice, and check out our Code of Conduct.
mlund86 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204611%2freportlab-pdfmetrics-ttfont-postscript-error%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password