hexapdf-extras 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18aea5b94e331d639be753fc306bf52a24a348356c05e958063a0066e896f1e4
4
- data.tar.gz: fa64c74156bfe91e7692825741f85199383a3d56987fb32db8dc30063e802d55
3
+ metadata.gz: 8e7fe626cf7fd851cd203b739c69bdd193b5debffcd129c656d59b51c2d326ad
4
+ data.tar.gz: 588a1a744477c437035ca66fd187f4c3563b135946efb8a21d5f73e77f15d238
5
5
  SHA512:
6
- metadata.gz: 6115bc7a6a964b76466dd030b33a7d0d394c0eec5c847875960fcf945d8fe253600c36837dbb5f18a756617a4308f162bb482c8a28d884460b7b15bd63b42ba7
7
- data.tar.gz: df41b43ba6afb9cb76b20c87f05658f7c5d250228d66f87a6906660156cfe1099eb331632304d7a82dfb3d3529757fcd44f4cbd34ce1988a0a17105cc8c3815d
6
+ metadata.gz: fb195eef642905d2797b96c545f63eaee7edff117982e16e8c3965d05c9abdf537331d35cfa09df6d9aebac3d03e4a28dbb921714bc3a4968984789f2f4548ea
7
+ data.tar.gz: 8682207937162bef5c86ca5f0f061dbb25469b989e65fa51dc4fbe7f3bc75739cc382911efee4c954e30a14650322bd870aa308e56436a1e18a665e0f4174a9d
@@ -14,33 +14,6 @@ end
14
14
 
15
15
  using HexaPDF::Extras::Layout::NumericMeasurementHelper
16
16
 
17
- # These values comes from the "Style Guide QR-bill", available at
18
- # https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/style-guide-qr-bill-en.pdf
19
- font = '/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf'
20
- font_bold = '/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf'
21
- HexaPDF::DefaultDocumentConfiguration['layout.swiss_qr_bill'] = {
22
- 'section.heading.font' => font_bold,
23
- 'section.heading.font_size' => 11,
24
- 'payment.heading.font' => font_bold,
25
- 'payment.heading.font_size' => 8,
26
- 'payment.heading.line_height' => 11,
27
- 'payment.value.font' => font,
28
- 'payment.value.font_size' => 10,
29
- 'payment.value.line_height' => 11,
30
- 'receipt.heading.font' => font_bold,
31
- 'receipt.heading.font_size' => 6,
32
- 'receipt.heading.line_height' => 9,
33
- 'receipt.value.font' => font,
34
- 'receipt.value.font_size' => 8,
35
- 'receipt.value.line_height' => 9,
36
- 'alternative_procedures.heading.font' => font_bold,
37
- 'alternative_procedures.heading.font_size' => 7,
38
- 'alternative_procedures.heading.line_height' => 8,
39
- 'alternative_procedures.value.font' => font,
40
- 'alternative_procedures.value.font_size' => 7,
41
- 'alternative_procedures.value.line_height' => 8,
42
- }
43
-
44
17
  module HexaPDF
45
18
  module Extras
46
19
  module Layout
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HexaPDF
4
4
  module Extras
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
7
7
  end
@@ -17,3 +17,30 @@ HexaPDF::DefaultDocumentConfiguration['layout.boxes.map'][:qrcode] =
17
17
 
18
18
  HexaPDF::DefaultDocumentConfiguration['layout.boxes.map'][:swiss_qr_bill] =
19
19
  'HexaPDF::Extras::Layout::SwissQRBill'
20
+
21
+ # These values comes from the "Style Guide QR-bill", available at
22
+ # https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/style-guide-qr-bill-en.pdf
23
+ font = '/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf'
24
+ font_bold = '/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf'
25
+ HexaPDF::DefaultDocumentConfiguration['layout.swiss_qr_bill'] = {
26
+ 'section.heading.font' => font_bold,
27
+ 'section.heading.font_size' => 11,
28
+ 'payment.heading.font' => font_bold,
29
+ 'payment.heading.font_size' => 8,
30
+ 'payment.heading.line_height' => 11,
31
+ 'payment.value.font' => font,
32
+ 'payment.value.font_size' => 10,
33
+ 'payment.value.line_height' => 11,
34
+ 'receipt.heading.font' => font_bold,
35
+ 'receipt.heading.font_size' => 6,
36
+ 'receipt.heading.line_height' => 9,
37
+ 'receipt.value.font' => font,
38
+ 'receipt.value.font_size' => 8,
39
+ 'receipt.value.line_height' => 9,
40
+ 'alternative_procedures.heading.font' => font_bold,
41
+ 'alternative_procedures.heading.font_size' => 7,
42
+ 'alternative_procedures.heading.line_height' => 8,
43
+ 'alternative_procedures.value.font' => font,
44
+ 'alternative_procedures.value.font_size' => 7,
45
+ 'alternative_procedures.value.line_height' => 8,
46
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexapdf-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner