On 10/1/10 6:35 AM, Jacek Kałucki wrote:
> Hi.
>
> With latest Ed changes report encoding works as expected. Thanks.
> But there is yet another problem I mentioned in ticket.
> It's Reportlab font registration issue.
>
> I would like to discuss two proposals:
> 1) register all fonts found on TTFSearchPath
>       when report library is imported;
> 2) register font dynamically (like in my patch),
>       in setFont() method.
>
> In both cases, method for extending TTFSearchPath should be provided
> for developer, e.g. to point location of custom fonts, delivered
> with application.
> In second case, there should be entry in 'settings.py',
> to allow mapping font names to corresponding font files,
> like: fontFileMap = {"MyFont": "/path_to/myfontfile.ttf"}.
>
> I think, that first method is simpler, isn't it?

The first is simpler, but it could result in registering a huge number of fonts 
that 
aren't ever used, each and every time you run your app. I like the second 
approach, 
which would register explicitly-referenced fonts when needed (and then leave 
them 
registered for the life of the python session).

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to