dragonfly_fonts 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dragonfly_fonts/version.rb +1 -1
- data/script/font_info.py +38 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 137d94fd8b94769c488579083ac8759459c991ec60f8b794afe16fbaf1632765
|
4
|
+
data.tar.gz: '0967af044720a841dead2736419e68fa90891f8bf41b2e1eba1c983f88b88e52'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be5bd6584a0c673694cfa81b4a4841380c4c080b1a38354d20f01c461d5aba9d32df4a9207b63d7359822b09645113d99dcda4a491d84eb53241bf187397016
|
7
|
+
data.tar.gz: dc149b8eb5d2364e730ee4351ebf1d0f783934efbe3b8c98dda25245be69c39c64c9b28e3253d1d718ee71e4b9dccdaa8eecd8b791873b1d75d49616c1e9eebd
|
data/CHANGELOG.md
CHANGED
data/script/font_info.py
CHANGED
@@ -5,7 +5,7 @@ import fontforge, json, sys
|
|
5
5
|
def main():
|
6
6
|
for f in sys.argv[1:] :
|
7
7
|
font = fontforge.open(f)
|
8
|
-
|
8
|
+
|
9
9
|
names = {}
|
10
10
|
for n in font.sfnt_names :
|
11
11
|
if n[0] == "English (US)" :
|
@@ -28,8 +28,43 @@ def main():
|
|
28
28
|
'fontlog': font.fontlog,
|
29
29
|
'fontname': font.fontname,
|
30
30
|
'fullname': font.fullname,
|
31
|
+
'hhea_ascent': font.hhea_ascent,
|
32
|
+
'hhea_ascent_add': font.hhea_ascent_add,
|
33
|
+
'hhea_descent': font.hhea_descent,
|
34
|
+
'hhea_descent_add': font.hhea_descent_add,
|
35
|
+
'hhea_linegap': font.hhea_linegap,
|
31
36
|
'license': names.get('License'),
|
32
37
|
'license_url': names.get('License URL'),
|
38
|
+
'os2_codepages': font.os2_codepages,
|
39
|
+
'os2_family_class': font.os2_family_class,
|
40
|
+
'os2_fstype': font.os2_fstype,
|
41
|
+
'os2_panose': font.os2_panose,
|
42
|
+
'os2_strikeypos': font.os2_strikeypos,
|
43
|
+
'os2_strikeysize': font.os2_strikeysize,
|
44
|
+
'os2_subxoff': font.os2_subxoff,
|
45
|
+
'os2_subxsize': font.os2_subxsize,
|
46
|
+
'os2_subyoff': font.os2_subyoff,
|
47
|
+
'os2_subysize': font.os2_subysize,
|
48
|
+
'os2_supxoff': font.os2_supxoff,
|
49
|
+
'os2_supxsize': font.os2_supxsize,
|
50
|
+
'os2_supyoff': font.os2_supyoff,
|
51
|
+
'os2_supysize': font.os2_supysize,
|
52
|
+
'os2_typoascent': font.os2_typoascent,
|
53
|
+
'os2_typoascent_add': font.os2_typoascent_add,
|
54
|
+
'os2_typodescent': font.os2_typodescent,
|
55
|
+
'os2_typodescent_add': font.os2_typodescent_add,
|
56
|
+
'os2_typolinegap': font.os2_typolinegap,
|
57
|
+
'os2_unicoderanges': font.os2_unicoderanges,
|
58
|
+
'os2_use_typo_metrics': font.os2_use_typo_metrics,
|
59
|
+
'os2_vendor': font.os2_vendor,
|
60
|
+
'os2_version': font.os2_version,
|
61
|
+
'os2_weight': font.os2_weight,
|
62
|
+
'os2_weight_width_slope_only': font.os2_weight_width_slope_only,
|
63
|
+
'os2_width': font.os2_width,
|
64
|
+
'os2_winascent': font.os2_winascent,
|
65
|
+
'os2_winascent_add': font.os2_winascent_add,
|
66
|
+
'os2_windescent': font.os2_windescent,
|
67
|
+
'os2_windescent_add': font.os2_windescent_add,
|
33
68
|
'path': font.path,
|
34
69
|
'sfnt_revision': font.sfntRevision,
|
35
70
|
'trademark': names.get('Trademark'),
|
@@ -42,8 +77,8 @@ def main():
|
|
42
77
|
'woff_revision': [font.woffMajor, font.woffMinor],
|
43
78
|
'x_height': font.xHeight
|
44
79
|
}
|
45
|
-
|
80
|
+
|
46
81
|
print json.dumps(font_info)
|
47
82
|
|
48
83
|
if __name__ == '__main__':
|
49
|
-
main()
|
84
|
+
main()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragonfly_fonts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|