On 7/20/13 6:52 AM, Werner F. Bruhin wrote: > Hi, > > I see > dabo.mainLog - INFO - reportWriter.py - 211 - Font file can not be found: > Helvetica-Bold.ttf > dabo.mainLog - INFO - reportWriter.py - 211 - Font file can not be found: > Times-Roman.ttf > > but things seem to work, i.e. I definitely see bold text, and I am not aware > of using > "Times-Roman" anywhere.
grep your .rfxml's... > What have a not setup that it does not find these font files? Those are font files that should be found on Windows, so I'm not sure. > Where do they need to be placed with py2exe'd application? I specifically use the DejaVu suite of fonts in my reports, since they have good unicode coverage and I can freely distribute them. So I put the .ttf's in my application's /resources/ directory, and I include the /resources/ directory in my py2exe/cxfreeze/pyinstaller config. To get reportlab to find and use these fonts, I call this from my app's initialization: https://gist.github.com/pmcnett/6045202 Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
