fontist 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -1
- data/lib/fontist.rb +1 -0
- data/lib/fontist/data/formulas/courier.yml +26 -0
- data/lib/fontist/data/formulas/ms_system.yml +68 -0
- data/lib/fontist/data/formulas/ms_vista.yml +105 -26
- data/lib/fontist/data/formulas/source_font.yml +154 -42
- data/lib/fontist/data/source.yml +2 -0
- data/lib/fontist/downloader.rb +1 -1
- data/lib/fontist/finder.rb +2 -4
- data/lib/fontist/formula_finder.rb +94 -0
- data/lib/fontist/formulas.rb +2 -0
- data/lib/fontist/formulas/base.rb +48 -1
- data/lib/fontist/formulas/courier_font.rb +25 -0
- data/lib/fontist/formulas/helpers/exe_extractor.rb +45 -0
- data/lib/fontist/formulas/helpers/zip_extractor.rb +36 -0
- data/lib/fontist/formulas/ms_system.rb +29 -0
- data/lib/fontist/formulas/ms_vista.rb +18 -50
- data/lib/fontist/formulas/source_font.rb +8 -31
- data/lib/fontist/installer.rb +11 -16
- data/lib/fontist/system_font.rb +11 -0
- data/lib/fontist/version.rb +1 -1
- data/spec/fontist/finder_spec.rb +1 -1
- data/spec/fontist/formula_finder_spec.rb +54 -0
- data/spec/fontist/formulas/courier_font_spec.rb +30 -0
- data/spec/fontist/formulas/ms_system_spec.rb +31 -0
- data/spec/fontist/formulas/ms_vista_spec.rb +3 -3
- data/spec/fontist/installer_spec.rb +4 -4
- data/spec/fontist/source_spec.rb +1 -1
- data/spec/fontist/system_font_spec.rb +11 -0
- metadata +12 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ba98ed24043b39252548b63233baad24570d02b80cc97d46da8e6f82b80abc3
|
4
|
+
data.tar.gz: 0412c264ac03becf765a3c81dad018dcd0ac3607fbe48b58469453a043740d9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1761bd0c41b66ee758204ee2219505604a8d644cdd96409d7544c8bb528726528e91f9057c4edab6fc7721f336c13a80e5442d7fd148ccb299040f3bface750
|
7
|
+
data.tar.gz: 7c0889d2f66affbe7c9e4f1f798051fd72305c7f89760469e01d1bb7d037d104c143eabbaff0be1bdd83f6e398898cadac9cee090579cdbdbf0eda4f3dc0c448
|
data/README.md
CHANGED
@@ -35,7 +35,31 @@ fonts and then it returns the complete path for the path. To find any font in a
|
|
35
35
|
user's system we can use the following interface.
|
36
36
|
|
37
37
|
```ruby
|
38
|
-
Fontist::Finder.find("
|
38
|
+
Fontist::Finder.find("Calibri")
|
39
|
+
```
|
40
|
+
|
41
|
+
### Supported fonts
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
[
|
45
|
+
"Arial",
|
46
|
+
"Calibri",
|
47
|
+
"Cambria",
|
48
|
+
"Candara",
|
49
|
+
"Consola",
|
50
|
+
"Constantia",
|
51
|
+
"Corbel",
|
52
|
+
"Courier",
|
53
|
+
"Meiryo",
|
54
|
+
"Meiryo UI",
|
55
|
+
"Source Code Pro",
|
56
|
+
"Source Han Sans",
|
57
|
+
"Source Sans Pro",
|
58
|
+
"Source Serif Pro",
|
59
|
+
"Times New Roman",
|
60
|
+
"Trebuchet",
|
61
|
+
"Verdana"
|
62
|
+
]
|
39
63
|
```
|
40
64
|
|
41
65
|
## Development
|
data/lib/fontist.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
courier:
|
2
|
+
agreement: "yes"
|
3
|
+
|
4
|
+
fonts:
|
5
|
+
- name: Courier
|
6
|
+
styles:
|
7
|
+
- type: Regular
|
8
|
+
font: cour.ttf
|
9
|
+
|
10
|
+
- type: Bold
|
11
|
+
font: courbd.ttf
|
12
|
+
|
13
|
+
- type: Italic
|
14
|
+
font: couri.ttf
|
15
|
+
|
16
|
+
- type: Bold Italic
|
17
|
+
font: courbi.ttf
|
18
|
+
|
19
|
+
file_size: "1675184"
|
20
|
+
sha: "bb511d861655dde879ae552eb86b134d6fae67cb58502e6ff73ec5d9151f3384"
|
21
|
+
urls:
|
22
|
+
- https://nchc.dl.sourceforge.net/project/corefonts/the%20fonts/final/courie32.exe
|
23
|
+
- http://sft.if.usp.br/msttcorefonts/courie32.exe
|
24
|
+
|
25
|
+
licence: |
|
26
|
+
Details of the license goes here.
|
@@ -0,0 +1,68 @@
|
|
1
|
+
ms_system:
|
2
|
+
agreement: "yes"
|
3
|
+
|
4
|
+
fonts:
|
5
|
+
- name: Arial
|
6
|
+
styles:
|
7
|
+
- type: Regular
|
8
|
+
font: Arial.ttf
|
9
|
+
|
10
|
+
- type: Bold
|
11
|
+
font: ArialBd.ttf
|
12
|
+
|
13
|
+
- type: Italic
|
14
|
+
font: ArialBd.ttf
|
15
|
+
|
16
|
+
- type: Bold Italic
|
17
|
+
font: ArialBI.ttf
|
18
|
+
|
19
|
+
- name: Times New Roman
|
20
|
+
styles:
|
21
|
+
- type: Regular
|
22
|
+
font: Times.ttf
|
23
|
+
|
24
|
+
- type: Bold
|
25
|
+
font: TimesBd.ttf
|
26
|
+
|
27
|
+
- type: Italic
|
28
|
+
font: TimesI.ttf
|
29
|
+
|
30
|
+
- type: Bold Italic
|
31
|
+
font: TimesBI.ttf
|
32
|
+
|
33
|
+
- name: Verdana
|
34
|
+
styles:
|
35
|
+
- type: Regular
|
36
|
+
font: Verdana.ttf
|
37
|
+
|
38
|
+
- type: Bold
|
39
|
+
font: Verdanab.ttf
|
40
|
+
|
41
|
+
- type: Italic
|
42
|
+
font: Verdanai.ttf
|
43
|
+
|
44
|
+
- type: Bold Italic
|
45
|
+
font: Verdanaz.ttf
|
46
|
+
|
47
|
+
- name: Trebuchet
|
48
|
+
styles:
|
49
|
+
- type: Regular
|
50
|
+
font: trebuc.ttf
|
51
|
+
|
52
|
+
- type: Bold
|
53
|
+
font: trebucbd.ttf
|
54
|
+
|
55
|
+
- type: Italic
|
56
|
+
font: trebucit.ttf
|
57
|
+
|
58
|
+
- type: Bold Italic
|
59
|
+
font: trebucbi.ttf
|
60
|
+
|
61
|
+
file_size: "1675184"
|
62
|
+
sha: "464dd2cd5f09f489f9ac86ea7790b7b8548fc4e46d9f889b68d2cdce47e09ea8"
|
63
|
+
urls:
|
64
|
+
- https://download.microsoft.com/download/a/1/8/a180e21e-9c2b-4b54-9c32-bf7fd7429970/EUupdate.EXE
|
65
|
+
- https://nchc.dl.sourceforge.net/project/corefonts/the%20fonts/final/EUupdate.EXE
|
66
|
+
|
67
|
+
licence: |
|
68
|
+
Details license goes here
|
@@ -2,32 +2,111 @@ msvista:
|
|
2
2
|
agreement: "yes"
|
3
3
|
|
4
4
|
fonts:
|
5
|
-
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
5
|
+
- name: Cambria
|
6
|
+
styles:
|
7
|
+
- type: Regular
|
8
|
+
font: CAMBRIA.TTC
|
9
|
+
|
10
|
+
- type: Bold
|
11
|
+
font: CAMBRIAB.TTF
|
12
|
+
|
13
|
+
- type: Italic
|
14
|
+
font: CAMBRIAI.TTF
|
15
|
+
|
16
|
+
- type: Bold Italic
|
17
|
+
font: CAMBRIAZ.TTF
|
18
|
+
|
19
|
+
- name: Calibri
|
20
|
+
styles:
|
21
|
+
- type: Regular
|
22
|
+
font: CALIBRI.TTF
|
23
|
+
|
24
|
+
- type: Bold
|
25
|
+
font: CALIBRIB.TTF
|
26
|
+
|
27
|
+
- type: Italic
|
28
|
+
font: CALIBRII.TTF
|
29
|
+
|
30
|
+
- type: Bold Italic
|
31
|
+
font: CALIBRIZ.TTF
|
32
|
+
|
33
|
+
- name: Candara
|
34
|
+
styles:
|
35
|
+
- type: Regular
|
36
|
+
font: CANDARA.TTF
|
37
|
+
|
38
|
+
- type: Bold
|
39
|
+
font: CANDARAB.TTF
|
40
|
+
|
41
|
+
- type: Italic
|
42
|
+
font: CANDARAI.TTF
|
43
|
+
|
44
|
+
- type: Bold Italic
|
45
|
+
font: CANDARAZ.TTF
|
46
|
+
|
47
|
+
- name: Consola
|
48
|
+
styles:
|
49
|
+
- type: Regular
|
50
|
+
font: CONSOLA.TTF
|
51
|
+
|
52
|
+
- type: Bold
|
53
|
+
font: CONSOLAB.TTF
|
54
|
+
|
55
|
+
- type: Italic
|
56
|
+
font: CONSOLAI.TTF
|
57
|
+
|
58
|
+
- type: Bold Italic
|
59
|
+
font: CONSOLAZ.TTF
|
60
|
+
|
61
|
+
- name: Constantia
|
62
|
+
styles:
|
63
|
+
- type: Regular
|
64
|
+
font: CONSTAN.TTF
|
65
|
+
|
66
|
+
- type: Bold
|
67
|
+
font: CONSTANB.TTF
|
68
|
+
|
69
|
+
- type: Italic
|
70
|
+
font: CONSTANI.TTF
|
71
|
+
|
72
|
+
- type: Bold Italic
|
73
|
+
font: CONSTANZ.TTF
|
74
|
+
|
75
|
+
- name: Corbel
|
76
|
+
styles:
|
77
|
+
- type: Regular
|
78
|
+
font: CORBEL.TTF
|
79
|
+
|
80
|
+
- type: Bold
|
81
|
+
font: CORBELB.TTF
|
82
|
+
|
83
|
+
- type: Italic
|
84
|
+
font: CORBELI.TTF
|
85
|
+
|
86
|
+
- type: Bold Italic
|
87
|
+
font: CORBELZ.TTF
|
88
|
+
|
89
|
+
# Note: further work necessary
|
90
|
+
#
|
91
|
+
# The initial version is returing the ttc fonts as
|
92
|
+
# it is, but maybe in the upcoming releases we will need
|
93
|
+
# to extract/parse the ttc fonts if necessary.
|
94
|
+
#
|
95
|
+
- name: Meiryo
|
96
|
+
styles:
|
97
|
+
- type: Regular
|
98
|
+
font: MEIRYO.TTC
|
99
|
+
|
100
|
+
- type: Bold
|
101
|
+
font: MEIRYO.TTC
|
102
|
+
|
103
|
+
- name: Meiryo UI
|
104
|
+
styles:
|
105
|
+
- type: Regular
|
106
|
+
font: MEIRYO.TTC
|
107
|
+
|
108
|
+
- type: Bold
|
109
|
+
font: MEIRYO.TTC
|
31
110
|
|
32
111
|
file_size: "62914560"
|
33
112
|
sha: "249473568eba7a1e4f95498acba594e0f42e6581add4dead70c1dfb908a09423"
|
@@ -2,48 +2,160 @@ source_font:
|
|
2
2
|
agreement: ""
|
3
3
|
|
4
4
|
fonts:
|
5
|
-
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
5
|
+
- name: Source Code Pro
|
6
|
+
styles:
|
7
|
+
- type: Black
|
8
|
+
font: SourceCodePro-Black.ttf
|
9
|
+
|
10
|
+
- type: Black Italic
|
11
|
+
font: SourceCodePro-BlackIt.ttf
|
12
|
+
|
13
|
+
- type: Bold
|
14
|
+
font: SourceCodePro-Bold.ttf
|
15
|
+
|
16
|
+
- type: Bold Italic
|
17
|
+
font: SourceCodePro-BoldIt.ttf
|
18
|
+
|
19
|
+
- type: Extra Light
|
20
|
+
font: SourceCodePro-ExtraLight.ttf
|
21
|
+
|
22
|
+
- type: ExtraLightIt
|
23
|
+
font: SourceCodePro-ExtraLightIt.ttf
|
24
|
+
|
25
|
+
- type: Italic
|
26
|
+
font: SourceCodePro-It.ttf
|
27
|
+
|
28
|
+
- type: Light
|
29
|
+
font: SourceCodePro-Light.ttf
|
30
|
+
|
31
|
+
- type: Light Italic
|
32
|
+
font: SourceCodePro-LightIt.ttf
|
33
|
+
|
34
|
+
- type: Medium
|
35
|
+
font: SourceCodePro-Medium.ttf
|
36
|
+
|
37
|
+
- type: Medium Italic
|
38
|
+
font: SourceCodePro-MediumIt.ttf
|
39
|
+
|
40
|
+
- type: Regular
|
41
|
+
font: SourceCodePro-Regular.ttf
|
42
|
+
|
43
|
+
- type: Semibold
|
44
|
+
font: SourceCodePro-Semibold.ttf
|
45
|
+
|
46
|
+
- type: Semibold Italic
|
47
|
+
font: SourceCodePro-SemiboldIt.ttf
|
48
|
+
|
49
|
+
- name: Source Sans Pro
|
50
|
+
styles:
|
51
|
+
- type: Black
|
52
|
+
font: SourceSansPro-Black.ttf
|
53
|
+
|
54
|
+
- type: Black Italic
|
55
|
+
font: SourceSansPro-BlackIt.ttf
|
56
|
+
|
57
|
+
- type: Bold
|
58
|
+
font: SourceSansPro-Bold.ttf
|
59
|
+
|
60
|
+
- type: Bold Italic
|
61
|
+
font: SourceSansPro-BoldIt.ttf
|
62
|
+
|
63
|
+
- type: Extra Light
|
64
|
+
font: SourceSansPro-ExtraLight.ttf
|
65
|
+
|
66
|
+
- type: ExtraLightIt
|
67
|
+
font: SourceSansPro-ExtraLightIt.ttf
|
68
|
+
|
69
|
+
- type: Italic
|
70
|
+
font: SourceSansPro-It.ttf
|
71
|
+
|
72
|
+
- type: Light
|
73
|
+
font: SourceSansPro-Light.ttf
|
74
|
+
|
75
|
+
- type: Light Italic
|
76
|
+
font: SourceSansPro-LightIt.ttf
|
77
|
+
|
78
|
+
- type: Medium
|
79
|
+
font: SourceSansPro-Medium.ttf
|
80
|
+
|
81
|
+
- type: Medium Italic
|
82
|
+
font: SourceSansPro-MediumIt.ttf
|
83
|
+
|
84
|
+
- type: Regular
|
85
|
+
font: SourceSansPro-Regular.ttf
|
86
|
+
|
87
|
+
- type: Semibold
|
88
|
+
font: SourceSansPro-Semibold.ttf
|
89
|
+
|
90
|
+
- type: Semibold Italic
|
91
|
+
font: SourceSansPro-SemiboldIt.ttf
|
92
|
+
|
93
|
+
- name: Source Serif Pro
|
94
|
+
styles:
|
95
|
+
- type: Black
|
96
|
+
font: SourceSerifPro-Black.ttf
|
97
|
+
|
98
|
+
- type: Black Italic
|
99
|
+
font: SourceSerifPro-BlackIt.ttf
|
100
|
+
|
101
|
+
- type: Bold
|
102
|
+
font: SourceSerifPro-Bold.ttf
|
103
|
+
|
104
|
+
- type: Bold Italic
|
105
|
+
font: SourceSerifPro-BoldIt.ttf
|
106
|
+
|
107
|
+
- type: Extra Light
|
108
|
+
font: SourceSerifPro-ExtraLight.ttf
|
109
|
+
|
110
|
+
- type: ExtraLightIt
|
111
|
+
font: SourceSerifPro-ExtraLightIt.ttf
|
112
|
+
|
113
|
+
- type: Italic
|
114
|
+
font: SourceSerifPro-It.ttf
|
115
|
+
|
116
|
+
- type: Light
|
117
|
+
font: SourceSerifPro-Light.ttf
|
118
|
+
|
119
|
+
- type: Light Italic
|
120
|
+
font: SourceSerifPro-LightIt.ttf
|
121
|
+
|
122
|
+
- type: Medium
|
123
|
+
font: SourceSerifPro-Medium.ttf
|
124
|
+
|
125
|
+
- type: Medium Italic
|
126
|
+
font: SourceSerifPro-MediumIt.ttf
|
127
|
+
|
128
|
+
- type: Regular
|
129
|
+
font: SourceSerifPro-Regular.ttf
|
130
|
+
|
131
|
+
- type: Semibold
|
132
|
+
font: SourceSerifPro-Semibold.ttf
|
133
|
+
|
134
|
+
- type: Semibold Italic
|
135
|
+
font: SourceSerifPro-SemiboldIt.ttf
|
136
|
+
|
137
|
+
- name: Source Han Sans
|
138
|
+
styles:
|
139
|
+
- type: Regular
|
140
|
+
font: SourceHanSans-Regular.ttc
|
141
|
+
|
142
|
+
- type: Normal
|
143
|
+
font: SourceHanSans-Normal.ttc
|
144
|
+
|
145
|
+
- type: Bold
|
146
|
+
font: SourceHanSans-Bold.ttc
|
147
|
+
|
148
|
+
- type: ExtraLight
|
149
|
+
font: SourceHanSans-ExtraLight.ttc
|
150
|
+
|
151
|
+
- type: Heavy
|
152
|
+
font: SourceHanSans-Heavy.ttc
|
153
|
+
|
154
|
+
- type: Light
|
155
|
+
font: SourceHanSans-Light.ttc
|
156
|
+
|
157
|
+
- type: Medium
|
158
|
+
font: SourceHanSans-Medium.ttc
|
47
159
|
|
48
160
|
file_size: "101440249"
|
49
161
|
sha: "0107b5d4ba305cb4dff2ba19138407aa2153632a2c41592f74d20cd0d0261bfd"
|