[reportlab-users] Fonts - reportlab pics serif no matter what I do
yan at seiner.com
Thu Jan 23 09:54:58 EST 2014
Thanks for pointing out the obvious.
I overlooked a file called "fontconfig.py" where all the fonts to be
used are defined.
I added my fonts and all is well.
On 01/22/2014 11:25 PM, Andy Robinson wrote:
> Can you post a snippet of code showing us what you are doing to find,
> register and use your fonts?
> On 22 January 2014 23:01, Yan Seiner <yan at seiner.com> wrote:
>> I'm a relative newbie in the world of reportlab.
>> The issue I am having is that reportlab apparently does not like the fonts
>> I have, and substitutes FreeSerif fonts instead of the FreeSans fonts I want
>> to use.
>> If I remove all of the FreeSerif fonts and just use the FreeSans fonts,
>> Reportlab fails with an error that it can't find the font info for the
>> family of fonts:
>> Can't map determine family/bold/italic for freesans
>> If I tell it to use serif fonts, the entire document is printed in serif
>> just fine.
>> If I tell it to use sansserif fonts, some of the document elements use
>> sansserif and some use serif.
>> I tried using my own fonts (DejaVu) and got the same font family error from
>> Can't map determine family/bold/italic for dejavusans
>> Where do I look? The little bit I've been able to gather on that error is
>> that maybe my sansserif font set is not complete, but the whole DejaVu set
>> is there....
>> I looked at the code for reportlab/lib/fonts.py but AFAICT the error is
>> being generated due to an empty map.
>> I'm stuck.
>> reportlab-users mailing list
>> reportlab-users at lists2.reportlab.com
More information about the reportlab-users