obf 0.9.8.36 → 0.9.8.37

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: 643f357ab48bdd49d04a5769707fec92e9b6c924ba551cbbcf65ba136b945e40
4
- data.tar.gz: d98c4a91aa881bdeee22e1563b3aafb7c036050b2b4a83379ff47fdea5b56687
3
+ metadata.gz: 9e9c05fbc1eb76aca00e0b2bda343ed7d2309ef8350d494eee7c07b1806013e4
4
+ data.tar.gz: 0b13491784c9dae969e7cf9344f7c5d171b63ab6251a37d57ce0261ae78106da
5
5
  SHA512:
6
- metadata.gz: 9f86ae672f6c60077c5927271dfc2eb1fc020bd39eac7b0f2dc2f638f47608df541ead763c8e8a68d34cf7de5e130190f767f4a0e900edd90051a0f45d8d2364
7
- data.tar.gz: 735e978e4a00b66f0f032d570936d86eed0741ed44dc04b7a0716e86070ab728f6b811f8abf6726d850caba9d21cb919b1ff16cc618a6f5f7d3d90472d216b13
6
+ metadata.gz: 9459a448663ae43c120ed92d1d223efa5402895665919df8ba2d1ac2c8a52276724f6b4157a71f6c1abe7fafa26029118467a1646f1f0ea2083320dc5c8fcc45
7
+ data.tar.gz: 8847fd9594814bb7789178f89584811f63c4726982307a1e4ff432cb9537e9a2beff69c684d4218a04d398116128bab6efc7e87eadc07f24a0a6d09f64aedffa
Binary file
data/lib/obf/pdf.rb CHANGED
@@ -46,6 +46,10 @@ module OBF::PDF
46
46
  pdf.font_families.update('TimesNewRoman' => {
47
47
  normal: File.expand_path('../../TimesNewRoman.ttf', __FILE__)
48
48
  })
49
+ # TODO: option to add more fonts
50
+ pdf.font_families.update('Sazanami-Hanazono-Mincho' => {
51
+ normal: File.expand_path('../../Sazanami-Hanazono-Mincho.ttf', __FILE__)
52
+ })
49
53
  default_font = 'TimesNewRoman'
50
54
  if opts['font'] && !opts['font'].match(/TimesNewRoman/) && File.exists?(opts['font'])
51
55
  pdf.font_families.update('DocDefault' => {
@@ -53,7 +57,7 @@ module OBF::PDF
53
57
  })
54
58
  default_font = 'DocDefault'
55
59
  end
56
- pdf.fallback_fonts = ['TimesNewRoman', 'THFahKwangBold', 'MiedingerBook', 'Helvetica']
60
+ pdf.fallback_fonts = ['TimesNewRoman', 'THFahKwangBold', 'MiedingerBook', 'Helvetica', 'Sazanami-Hanazono-Mincho']
57
61
  pdf.font(default_font)
58
62
  default_font
59
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8.36
4
+ version: 0.9.8.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -147,6 +147,7 @@ files:
147
147
  - README.md
148
148
  - lib/Arial.ttf
149
149
  - lib/MiedingerBook.ttf
150
+ - lib/Sazanami-Hanazono-Mincho.ttf
150
151
  - lib/THFahKwangBold.ttf
151
152
  - lib/TimesNewRoman.ttf
152
153
  - lib/obf.rb
@@ -168,7 +169,7 @@ homepage: https://github.com/CoughDrop/obf
168
169
  licenses:
169
170
  - MIT
170
171
  metadata: {}
171
- post_install_message:
172
+ post_install_message:
172
173
  rdoc_options: []
173
174
  require_paths:
174
175
  - lib
@@ -183,9 +184,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
184
  - !ruby/object:Gem::Version
184
185
  version: '0'
185
186
  requirements: []
186
- rubyforge_project:
187
+ rubyforge_project:
187
188
  rubygems_version: 2.7.6
188
- signing_key:
189
+ signing_key:
189
190
  specification_version: 4
190
191
  summary: Open Board Format
191
192
  test_files: []