claudep / swiss-qr-bill

A Python library to generate Swiss QR-bill payment slips
MIT License
97 stars 39 forks source link

Scissors missing on top seperation line #65

Closed anjagenser closed 2 years ago

anjagenser commented 3 years ago

Currently the scissor is only shown on the vertical seperation line. However; in the standard it says that a scissor symbol should appear on both of those lines.

I tried adding it to the top line, but my attempt doesn't look great:

grp.add(dwg.text(
                "✂", insert=(add_mm(60, mm(-1.5)), 10),
                font_size=16, font_family='Helvetica'
            ))

Possibly you could come up with a better way and help me out?

claudep commented 3 years ago

The problem with adding scissors on horizontal line is that we have to increase the height of the bill to make the symbol entirely visible. Do you think that having only half of scissors visible would be enough?

claudep commented 3 years ago

Note that the spec also allows replacing the scissors by the text A détacher avant le versement above the bill.

anjagenser commented 2 years ago

I see, you are totally right. I think I would prefer increasing the height of the bill a tiny bit.

claudep commented 2 years ago

There is now a pull request, maybe you want to test it?

anjagenser commented 2 years ago

It's beautiful :) thank you!