← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 811766] Re: Letter spacing is not respected with Webkit BVR report

 

Hi,

It can't be the font as it is the same as in the Swiss localization for
TinyERP 4.2 (which I still use in production). But after trying a lot of
different parameters on the command line, I found what seems to be the
right/best option.

I edited webkit_report.py to add the --dpi and --disable-smart-shrinking
parameters.

102,103d101
<         command.append('--dpi 99')
<         command.append('--disable-smart-shrinking')

On linux with the amd64 static build, I get the best result with an OCRB
font size of 12pt and 99 dpi. On windows, it is 12pt with 100dpi.

After changing these parameters, restart OpenERP and you should get
correct results. But as the --dpi option has an impact on the whole
document, you will have to edit bvr.mako again in order to align it on
the Postfinance template.

I didn't made a lot of tests, but I can imagine that the --dpi setting
will be system dependent, so it could be better to put it in the society
parameters than hardcoded in webkit_report.py.

Hope this will help fix this issue
Regards
Cédric

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/811766

Title:
  Letter spacing is not respected with Webkit BVR report

Status in OpenERP Modules (addons):
  New

Bug description:
  On a stock new install of OpenERP6 with Swiss localization, the letter spacing of the OCR-B font is not respected in the BVR. It seems that webkit is slightly extending the spacing (to fit the document width?), which results in rejected BVR.
  This issue was not present with the RML BVR. To illustrate this, I printed an invoice with BVR and merged it with the official BVR model from Postfinance (blue font). As you can see in the PDF, webkit is extending the letter spacing.
  I also tried to reduce the font-size, to specify letter-spacing, in all units, but found no way to address this.
  You should also add a space after the + sign in the reference line.
  Anyway, thanks for this great localization!

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


References