← Back to team overview

openerp-india team mailing list archive

Re: [Bug 1077428] Re: Can't map determine family/bold/italic for dejavu sans

 

I ended up changing
/usr/lib64/python2.7/site-packages/reportlab/lib/fonts.py

In the method ps2tt:


def ps2tt(psfn):
    'ps fontname to family name, bold, italic'
    psfn = psfn.lower()
    if psfn=='dejavu sans':
        return ('Helvetica', 0, 0)

    if psfn in _ps2tt_map:
        return _ps2tt_map[psfn]
    raise ValueError("Can't map determine family/bold/italic for %s" % psfn)

The two lines added are

    if psfn=='dejavu sans':
        return ('Helvetica', 0, 0)


This works for me now.

-Torvald


2013/1/14 Sylvain Plante <Sylvain.Plante@xxxxxxxxxxxxxxxx>

> I am running openerp-allinone-setup-7.0alpha-20130107-000101 on Windows
> server 2003.  Is there any workaround?  I can not access the
> Header/Footer template in Company.  Are the Header/Footer code store in
> the database?  If so where?
>
> I have tried to change the Helvetica font in request_quotation.rml with
> arial font with no success.  Instead of talking about dejavu font the
> message talk about Arial font.
>
> Any help would be greatly appreciated.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1083774).
> https://bugs.launchpad.net/bugs/1077428
>
> Title:
>   Can't map determine family/bold/italic for dejavu sans
>
> Status in OpenERP Server:
>   Confirmed
>
> Bug description:
>   With latest revno:
>
>   server: 4549
>
>
>   Create a customer invoice enter the data then Validate.
>   Try to Send by email.
>
>   system crash https://gist.github.com/4051988
>
>   I am on mac OSX
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-server/+bug/1077428/+subscriptions
>


-- 
Torvald Baade Bringsvor
Bringsvor Consulting AS - Utvikling og design av IT system.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1077428

Title:
  Can't map determine family/bold/italic for dejavu sans

Status in OpenERP Server:
  Confirmed

Bug description:
  With latest revno:

  server: 4549

  
  Create a customer invoice enter the data then Validate.
  Try to Send by email.

  system crash https://gist.github.com/4051988

  I am on mac OSX

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1077428/+subscriptions


References