[reportlab-users] registering font does not work after switching media server
Tim Roberts
timr at probo.com
Thu Mar 25 13:50:50 EDT 2010
Thomas Kremmel wrote:
> Hi,
>
> I m developing a django app using reportlab. Till now I just used the
> django development server to serve all media files, including some ttf
> fonts to be registered by reportlab. I do it like this:
>
> pdfmetrics.registerFont(TTFont('Calibri', settings.MEDIA_URL +
> 'fonts/calibri.ttf'))
>
> That worked fine till I switched from the django development server to
> apache production server. Now I'm getting the error:
>
>
> TTFError at /accounting/export/do/
>
> Not a TrueType font: version=0x3C21444F
In ASCII, that hex sequence would be <!DO, which looks very much like
the <!DOCTYPE header you'd get from an HTML page. Is it possible you
downloaded this font improperly?
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100325/4e2e834b/attachment.htm>
More information about the reportlab-users
mailing list