On 10/6/10 6:20 AM, Nate Lowrie wrote:
>    On 10/6/10 9:18 AM, Jacek Kałucki wrote:
>> Użytkownik Nate Lowrie napisał:
>>>      If you register TrueType Font files and use them in a report, will it
>>> bundle them with the report so you can use them on any machine?
>>>
>>>
>> Hi.
>>
>> It's runtime registration only in reportlab module.
>> But you can add application subdirectory like 'fonts' and distribute
>> it the same way like 'reports' subdirectory is.
>> Then in Application.afterInit() method you can use:
>>
>> dabo.lib.reportWriter.addReportTTFontFilePath(os.path.join(self.Home,
>> "fonts"))
>> It should work.
>>
> That's what I was looking for.  I suggest that we make this standard in
> Dabo.  Put the fonts folder either in the reports folder or the main
> application folder and have the report writer automatically add that
> directory if it exists.  That way it is seamless.

I agree. It should probably go in the main app folder along with icons/ and 
reports/. 
That way the distributed TTF files could also be used in the UI.

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