psd 3.3.2 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/psd/layer/info/typetool.rb +8 -0
- data/lib/psd/slice.rb +1 -1
- data/lib/psd/version.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: 2bda3103c40e7402bbf6caa70f3c9087088f47a5
|
4
|
+
data.tar.gz: e8bf4ebb6539390b2c64820392a35f01a3d3e730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c337cdc436e76d11c84ebee5e87070c101ebd49bb8f143bf25767de5aef5be26839874acb38ac00368a763de7830bdb9c640ecb6be9a92145f7920f1248e586
|
7
|
+
data.tar.gz: 73b3e7a6072a3e6e3dcc3a1fb84373523d46553250a2dd343efedde77e34d9c307e4e383b857020a91b4a82e41d542adac7c76c891b6a4525c9fa1251f47fe24
|
@@ -50,9 +50,11 @@ class PSD
|
|
50
50
|
def font
|
51
51
|
{
|
52
52
|
name: fonts.first,
|
53
|
+
fonts: fonts,
|
53
54
|
sizes: sizes,
|
54
55
|
colors: colors,
|
55
56
|
alignment: alignment,
|
57
|
+
leadings: leadings,
|
56
58
|
css: to_css
|
57
59
|
}
|
58
60
|
end
|
@@ -64,6 +66,12 @@ class PSD
|
|
64
66
|
engine_data.ResourceDict.FontSet.map(&:Name)
|
65
67
|
end
|
66
68
|
|
69
|
+
# Return all leadings (line spacing) for this layer.
|
70
|
+
def leadings
|
71
|
+
return [] if engine_data.nil? || !styles.has_key?('Leading')
|
72
|
+
styles['Leading'].uniq
|
73
|
+
end
|
74
|
+
|
67
75
|
# Return all font sizes for this layer.
|
68
76
|
def sizes
|
69
77
|
return [] if engine_data.nil? || !styles.has_key?('FontSize')
|
data/lib/psd/slice.rb
CHANGED
@@ -3,7 +3,7 @@ class PSD
|
|
3
3
|
attr_reader :id, :group_id, :origin, :associated_layer_id, :name, :type,
|
4
4
|
:bounds, :url, :target, :message, :alt, :cell_text_is_html,
|
5
5
|
:cell_text, :horizontal_alignment, :vertical_alignment,
|
6
|
-
:color
|
6
|
+
:color, :outset
|
7
7
|
|
8
8
|
def initialize(psd, data)
|
9
9
|
@psd = psd
|
data/lib/psd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: psd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan LeFevre
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04
|
12
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|