fontisan 0.4.2 → 0.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14c31b390c5721b221f5c04239baf1d2330b668d142addd3e321b3bd868f7b7a
4
- data.tar.gz: 726fe81623ef7f410aa09e3b7a7838b8e0df1c2304cf9b36d1ad0727bdcf03e8
3
+ metadata.gz: 5b68479ccaac604474e929d9dc4b3de24ec1c79f53e187fd7394cafdf3e02a11
4
+ data.tar.gz: 27c7dd8fd5afed7656aaaba9a57ea52c78144d66a4346bd4d4b0285c6327c176
5
5
  SHA512:
6
- metadata.gz: f4c11a54cd876590a4e52df790eeadc490da5b3bad9ef2a0ff6186f560ff2b584c29bc2f7fac1881f25771a3a7031b1d1db5d7cf5c0c67c057ec254165d6b2ac
7
- data.tar.gz: 556737df14831d0bf14a82ed34e27f9438f93fe0d1c51b6324d0e3f938de3b7ce136bcb0b4a3a8a50698e7e603a02227fd87ee74de530df60e81fcbd5d3a4e5b
6
+ metadata.gz: 55d3133ec31fb397c671039a8181c5182b62a9cac0108df9a45d551b5def47475d2edbef7e9d921727ad812734351234da82f71c7b8fd1314a16dab83261aa6a
7
+ data.tar.gz: 4a59af9b12d398575f45018511eeeaea0e49b827efd223f3052ff48f12053087f0e0749498a6be3049f5adb8c880e8461c28167ae7601a7d3dbcaa403e7380e1
@@ -40,10 +40,11 @@ module Fontisan
40
40
 
41
41
  private
42
42
 
43
- # All tables every OTF/TTF must have.
43
+ # All tables every OTF/TTF must have, plus optional feature
44
+ # tables (GPOS for kerning) when the UFO source has kerning data.
44
45
  def build_tables
45
46
  glyphs = font.glyphs.values
46
- {
47
+ tables = {
47
48
  "head" => Head.build(font, glyphs: glyphs),
48
49
  "hhea" => Hhea.build(font, glyphs: glyphs),
49
50
  "maxp" => Maxp.build(font, glyphs: glyphs),
@@ -52,7 +53,13 @@ module Fontisan
52
53
  "post" => Post.build(font, glyphs: glyphs),
53
54
  "hmtx" => Hmtx.build(font, glyphs: glyphs),
54
55
  "cmap" => Cmap.build(font, glyphs: glyphs),
55
- }.merge(build_outline_tables)
56
+ }
57
+
58
+ # GPOS kern table (only when the UFO source has kerning pairs)
59
+ gpos = Gpos.build(font, glyphs: glyphs)
60
+ tables["GPOS"] = gpos if gpos
61
+
62
+ tables.merge(build_outline_tables)
56
63
  end
57
64
 
58
65
  def write(tables_hash, output_path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fontisan
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontisan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.