ttfunk 1.0.1 → 1.0.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.
data/CHANGELOG CHANGED
@@ -1,2 +1,5 @@
1
+ v1.0.2 (8 August 2011)
2
+ * Fix Ruby 1.9.2 segmentation fault on Enumerable#zip(range) [Lucas Florio]
3
+
1
4
  v1.0.0 (XX February 2011)
2
5
  * initial release as a standalone gem
@@ -1,7 +1,9 @@
1
1
  module TTFunk
2
2
  module Encoding
3
3
  class MacRoman
4
- TO_UNICODE = Hash[*(0..255).zip(0..255).flatten]
4
+ # XXX: Ruby 1.9.2 on OS X Lion segfaults on range1.zip(range2)
5
+ TO_UNICODE = Hash[*(0..255).zip((0..255).to_a).flatten]
6
+
5
7
  TO_UNICODE.update(
6
8
  0x81 => 0x00C5, 0x82 => 0x00C7, 0x83 => 0x00C9, 0x84 => 0x00D1, 0x85 => 0x00D6,
7
9
  0x86 => 0x00DC, 0x87 => 0x00E1, 0x88 => 0x00E0, 0x89 => 0x00E2, 0x8A => 0x00E4,
@@ -1,7 +1,8 @@
1
1
  module TTFunk
2
2
  module Encoding
3
3
  class Windows1252
4
- TO_UNICODE = Hash[*(0..255).zip(0..255).flatten]
4
+ # XXX: Ruby 1.9.2 on OS X Lion segfaults on range1.zip(range2)
5
+ TO_UNICODE = Hash[*(0..255).zip((0..255).to_a).flatten]
5
6
  TO_UNICODE.update(
6
7
  0x80 => 0x20AC, 0x82 => 0x201A, 0x83 => 0x0192, 0x84 => 0x201E, 0x85 => 0x2026,
7
8
  0x86 => 0x2020, 0x87 => 0x2021, 0x88 => 0x02C6, 0x89 => 0x2030, 0x8A => 0x0160,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttfunk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gregory Brown
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2011-04-02 00:00:00 -05:00
22
+ date: 2011-08-08 00:00:00 -05:00
23
23
  default_executable:
24
24
  dependencies: []
25
25
 
@@ -37,43 +37,43 @@ extensions: []
37
37
  extra_rdoc_files: []
38
38
 
39
39
  files:
40
- - lib/ttfunk.rb
41
- - lib/ttfunk/encoding/windows_1252.rb
40
+ - lib/ttfunk/directory.rb
42
41
  - lib/ttfunk/encoding/mac_roman.rb
42
+ - lib/ttfunk/encoding/windows_1252.rb
43
+ - lib/ttfunk/reader.rb
43
44
  - lib/ttfunk/resource_file.rb
44
- - lib/ttfunk/subset.rb
45
- - lib/ttfunk/directory.rb
45
+ - lib/ttfunk/subset/base.rb
46
+ - lib/ttfunk/subset/mac_roman.rb
46
47
  - lib/ttfunk/subset/unicode.rb
47
- - lib/ttfunk/subset/windows_1252.rb
48
48
  - lib/ttfunk/subset/unicode_8bit.rb
49
- - lib/ttfunk/subset/mac_roman.rb
50
- - lib/ttfunk/subset/base.rb
51
- - lib/ttfunk/table/hhea.rb
52
- - lib/ttfunk/table/post.rb
53
- - lib/ttfunk/table/kern/format0.rb
54
- - lib/ttfunk/table/os2.rb
49
+ - lib/ttfunk/subset/windows_1252.rb
50
+ - lib/ttfunk/subset.rb
51
+ - lib/ttfunk/subset_collection.rb
52
+ - lib/ttfunk/table/cmap/format00.rb
53
+ - lib/ttfunk/table/cmap/format04.rb
54
+ - lib/ttfunk/table/cmap/subtable.rb
55
+ - lib/ttfunk/table/cmap.rb
55
56
  - lib/ttfunk/table/glyf/compound.rb
56
57
  - lib/ttfunk/table/glyf/simple.rb
57
- - lib/ttfunk/table/simple.rb
58
+ - lib/ttfunk/table/glyf.rb
59
+ - lib/ttfunk/table/head.rb
60
+ - lib/ttfunk/table/hhea.rb
58
61
  - lib/ttfunk/table/hmtx.rb
62
+ - lib/ttfunk/table/kern/format0.rb
63
+ - lib/ttfunk/table/kern.rb
59
64
  - lib/ttfunk/table/loca.rb
60
- - lib/ttfunk/table/cmap/format04.rb
61
- - lib/ttfunk/table/cmap/format00.rb
62
- - lib/ttfunk/table/cmap/subtable.rb
63
- - lib/ttfunk/table/cmap.rb
64
65
  - lib/ttfunk/table/maxp.rb
65
- - lib/ttfunk/table/post/format40.rb
66
+ - lib/ttfunk/table/name.rb
67
+ - lib/ttfunk/table/os2.rb
68
+ - lib/ttfunk/table/post/format10.rb
66
69
  - lib/ttfunk/table/post/format20.rb
67
70
  - lib/ttfunk/table/post/format25.rb
68
71
  - lib/ttfunk/table/post/format30.rb
69
- - lib/ttfunk/table/post/format10.rb
70
- - lib/ttfunk/table/name.rb
71
- - lib/ttfunk/table/kern.rb
72
- - lib/ttfunk/table/glyf.rb
73
- - lib/ttfunk/table/head.rb
74
- - lib/ttfunk/reader.rb
75
- - lib/ttfunk/subset_collection.rb
72
+ - lib/ttfunk/table/post/format40.rb
73
+ - lib/ttfunk/table/post.rb
74
+ - lib/ttfunk/table/simple.rb
76
75
  - lib/ttfunk/table.rb
76
+ - lib/ttfunk.rb
77
77
  - data/fonts/comicsans.ttf
78
78
  - data/fonts/DejaVuSans.ttf
79
79
  - examples/metrics.rb
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements: []
114
114
 
115
115
  rubyforge_project:
116
- rubygems_version: 1.5.2
116
+ rubygems_version: 1.6.2
117
117
  signing_key:
118
118
  specification_version: 3
119
119
  summary: TrueType Font Metrics Parser