obf 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/pdf.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe29351cb9dbcd697ff6aaa20e6989e52b3e6c0d
|
4
|
+
data.tar.gz: fa30e3203fb42f03822d7aa5dd476dd6a85c28e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d431ebd7f27dd87cad0f2a2dc9d4f623aff96493ad3be651ca56db150329fad791cdaf5f390ad994619841a4eed4fcab9712e81f29aa585d0dab7f74531647
|
7
|
+
data.tar.gz: b929d215542ea4844186cca30aa2d4bac5dfc01d33d36d80698d33141255fa78b4bb50a36054c4ef3bbc83ccf8960e9dc145100cc31b7b50df126d49510d2ad2
|
data/lib/obf/pdf.rb
CHANGED
@@ -156,12 +156,12 @@ module OBF::PDF
|
|
156
156
|
pdf.fill_and_stroke_rounded_rectangle [0, button_height], button_width, button_height, default_radius
|
157
157
|
vertical = options['text_on_top'] ? button_height - text_height : button_height - 5
|
158
158
|
|
159
|
+
text = (button['label'] || button['vocalization']).to_s
|
159
160
|
font = options['font']
|
160
161
|
if text.match(/\p{Thai}/)
|
161
162
|
font = File.expand_path('../../THFahKwangBold.ttf', __FILE__)
|
162
163
|
end
|
163
164
|
pdf.font(font) if font && File.exists?(font)
|
164
|
-
text = (button['label'] || button['vocalization']).to_s
|
165
165
|
direction = text.match(rtl_regex) ? :rtl : :ltr
|
166
166
|
if options['text_case'] == 'upper'
|
167
167
|
text = text.upcase
|
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.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Whitmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|