ttfunk 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ttfunk/table/cmap.rb +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2b4176f0d8701f25cdd3de3740e70f00541fad3
4
- data.tar.gz: a0c0b6f0725f29cd1545f558f7b6d905b87b22d6
3
+ metadata.gz: a769f887e0602c169c60cd4dd6bc124abc7381e4
4
+ data.tar.gz: 24f486228876268dc8d9f7ce7eb9150c39f70642
5
5
  SHA512:
6
- metadata.gz: 4509b669440d7b481234192987060f334a6b46900968f8e223d58a6c6f5dbe1785069e0dc3e9ea69db4e066d1551f167ae1046bb98c33871ad97c82524c1bb32
7
- data.tar.gz: 012c788140511b758016e902e945708539a4d555190408cc1d71203d90f720848598417563b1f8812be206e99d80fec73ba5fe93b6a4f82d3d272ed80e367f05
6
+ metadata.gz: 6d9690af986ed9ff9d4a0d395e84a7fd79b7ee112a03c88085d6670c8eb2d2f5c637193da617da0b2f9dca562da56701aebd0dd35cf0921a930da801096af058
7
+ data.tar.gz: 43fc358d94b88e59668c8954f08e633de8dbd5f0e90497b2e606a6d21d9e768c67342ce227c52d7af1fb33253f3eb1446796ee891f640cbf5fb901fc63f7b719
@@ -13,9 +13,10 @@ module TTFunk
13
13
  end
14
14
 
15
15
  def unicode
16
- # Because most callers just call .first on the result, put tables with highest-number format first.
17
- # (Tables with higher format numbers tend to be more complete, especially in higher/astral Unicode ranges.)
18
- @unicode ||= @tables.select { |table| table.unicode? }.sort{|a,b| b.format <=> a.format }
16
+ # Because most callers just call .first on the result, put tables with
17
+ # highest-number format first. Unsupported formats will be ignored.
18
+ @unicode ||= @tables.select { |table| table.unicode? && table.supported? }
19
+ .sort{|a,b| b.format <=> a.format }
19
20
  end
20
21
 
21
22
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttfunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-08-28 00:00:00.000000000 Z
15
+ date: 2014-08-29 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rdoc