obf 0.9.9.2 → 0.9.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Khmer.ttf +0 -0
  3. data/lib/obf/pdf.rb +4 -1
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49734c92d9d154f254416ecff17f6a04503b5afc2d340d3ceb7f94ec89b6f82b
4
- data.tar.gz: bfff105ec7b48a2eeb746b8d437c3f6d245d75b499bbc4feae142548a2b43f82
3
+ metadata.gz: f0e84d8f70a1087b0875c7515fdb3eef30caae91e862bade5a2e6f6044cf43af
4
+ data.tar.gz: 8ea281959203867d563704341cf178a7c166a0a51efbc28ec42385f71ed81fb7
5
5
  SHA512:
6
- metadata.gz: cc6e780f1b371e4c87dbb42e039410605a27c1bc6ee8753a907badb3953a841b26f0c907ac1c530f1c2344dd4186e59d194b76fb179c6ae2bbe8516665bfbbde
7
- data.tar.gz: dacb2ff2fdcebabbbb918ff047c241efe6c36d1d35710f0c1cfa2f9c2c16015cb39796fe984a131e7d8320dc7f221492a9b104e7917253392ea5d69f22fbf5ae
6
+ metadata.gz: f76d3cb77c81d210261b2295a7d2aa2358bb324250d3093600bc0765971b6f67c0f04ca31de9023ceda7087d853516449eeb1716bbb4f456d05633babfefa969
7
+ data.tar.gz: 4b2389d3600ec697d8cd74aacae99ef4936bcedd0aa85a8f57d1c3215146fe82cb7138af6c7d338ae5d29db44231b8755b6a066f34a000e8f7f84ef5f68954fd
data/lib/Khmer.ttf ADDED
Binary file
data/lib/obf/pdf.rb CHANGED
@@ -50,6 +50,9 @@ module OBF::PDF
50
50
  pdf.font_families.update('Sazanami-Hanazono-Mincho' => {
51
51
  normal: File.expand_path('../../Sazanami-Hanazono-Mincho.ttf', __FILE__)
52
52
  })
53
+ pdf.font_families.update('Khmer' => {
54
+ normal: File.expand_path('../../Khmer.ttf', __FILE__)
55
+ })
53
56
  default_font = 'TimesNewRoman'
54
57
  if opts['font'] && !opts['font'].match(/TimesNewRoman/) && File.exists?(opts['font'])
55
58
  pdf.font_families.update('DocDefault' => {
@@ -57,7 +60,7 @@ module OBF::PDF
57
60
  })
58
61
  default_font = 'DocDefault'
59
62
  end
60
- pdf.fallback_fonts = ['TimesNewRoman', 'THFahKwangBold', 'MiedingerBook', 'Helvetica', 'Sazanami-Hanazono-Mincho']
63
+ pdf.fallback_fonts = ['TimesNewRoman', 'THFahKwangBold', 'MiedingerBook', 'Helvetica', 'Sazanami-Hanazono-Mincho', 'Khmer']
61
64
  pdf.font(default_font)
62
65
  default_font
63
66
  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.9.2
4
+ version: 0.9.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-18 00:00:00.000000000 Z
11
+ date: 2023-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -146,6 +146,7 @@ files:
146
146
  - LICENSE
147
147
  - README.md
148
148
  - lib/Arial.ttf
149
+ - lib/Khmer.ttf
149
150
  - lib/MiedingerBook.ttf
150
151
  - lib/Sazanami-Hanazono-Mincho.ttf
151
152
  - lib/THFahKwangBold.ttf