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.
- checksums.yaml +4 -4
- data/lib/Khmer.ttf +0 -0
- data/lib/obf/pdf.rb +4 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e84d8f70a1087b0875c7515fdb3eef30caae91e862bade5a2e6f6044cf43af
|
4
|
+
data.tar.gz: 8ea281959203867d563704341cf178a7c166a0a51efbc28ec42385f71ed81fb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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:
|
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
|