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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17eeb855016ea89bc25453b66ed40793bc526012
4
- data.tar.gz: d334945d94005f955b53ef559219d30dfa8109cd
3
+ metadata.gz: 2bda3103c40e7402bbf6caa70f3c9087088f47a5
4
+ data.tar.gz: e8bf4ebb6539390b2c64820392a35f01a3d3e730
5
5
  SHA512:
6
- metadata.gz: 2040eb9b51beb8dadff64b723a8e09abc904c8cb4b3aab25b111b7ec08a88fcf0afb8f89eaa2aaa44d9d5e33a80f6641dae0c527116f08946df6714ff3912a6e
7
- data.tar.gz: 99c0b1d6d7709c46ebcef097ba0bf2c1ee7c26fd83a7c0bab57e3d2d25f7b8f1cdddab99bb1f5a758e176cd55b55adeab990745d89483ce3b8cd900b9b0d5882
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')
@@ -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
@@ -1,3 +1,3 @@
1
1
  class PSD
2
- VERSION = "3.3.2"
2
+ VERSION = "3.3.3"
3
3
  end
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.2
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-22 00:00:00.000000000 Z
12
+ date: 2015-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake