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 +4 -4
- data/lib/fontisan/ufo/compile/base_compiler.rb +10 -3
- data/lib/fontisan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b68479ccaac604474e929d9dc4b3de24ec1c79f53e187fd7394cafdf3e02a11
|
|
4
|
+
data.tar.gz: 27c7dd8fd5afed7656aaaba9a57ea52c78144d66a4346bd4d4b0285c6327c176
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
}
|
|
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)
|
data/lib/fontisan/version.rb
CHANGED