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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a5ce61ee68294a97524ff87c5e618bea5d1e29ab9df3387e8dee8012c424ac1
4
- data.tar.gz: 478d00a93ca6a5e3ef247f1d9d3b4a925b281d50400f161bdd4ff86d3060fe1f
3
+ metadata.gz: 2ba98ed24043b39252548b63233baad24570d02b80cc97d46da8e6f82b80abc3
4
+ data.tar.gz: 0412c264ac03becf765a3c81dad018dcd0ac3607fbe48b58469453a043740d9f
5
5
  SHA512:
6
- metadata.gz: acf8df0ad6831f6e10602e854fb32042c3d1bece526c2293e8a6a71c76d65d2092f69a4a3d161e2eef863de74f5380253b7a1a02ad7ec9e718b5c4676796ec69
7
- data.tar.gz: a2c9485dc91adee02a8926a0c0ac52a223d26e16f37396adb914e902851453486c9be84ec3d7ae6a1220ba5a0af51751d4c5fd9840692ca15de7079b9830c9a9
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("CALIBRI.TTF")
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
@@ -6,6 +6,7 @@ require "fontist/source"
6
6
  require "fontist/installer"
7
7
  require "fontist/system_font"
8
8
  require "fontist/formulas"
9
+ require "fontist/formula_finder"
9
10
 
10
11
  module Fontist
11
12
  def self.lib_path
@@ -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
- - CALIBRI.TTF
6
- - CALIBRII.TTF
7
- - CAMBRIA.TTC
8
- - CAMBRIAI.TTF
9
- - CANDARA.TTF
10
- - CANDARAI.TTF
11
- - CONSOLA.TTF
12
- - CONSOLAI.TTF
13
- - CONSTAN.TTF
14
- - CONSTANI.TTF
15
- - CORBEL.TTF
16
- - CORBELI.TTF
17
- - MEIRYO.TTC
18
- - CALIBRIB.TTF
19
- - CALIBRIZ.TTF
20
- - CAMBRIAB.TTF
21
- - CAMBRIAZ.TTF
22
- - CANDARAB.TTF
23
- - CANDARAZ.TTF
24
- - CONSOLAB.TTF
25
- - CONSOLAZ.TTF
26
- - CONSTANB.TTF
27
- - CONSTANZ.TTF
28
- - CORBELB.TTF
29
- - CORBELZ.TTF
30
- - MEIRYOB.TTC
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
- - SourceCodePro-Black.ttf
6
- - SourceCodePro-BlackIt.ttf
7
- - SourceCodePro-Bold.ttf
8
- - SourceCodePro-BoldIt.ttf
9
- - SourceCodePro-ExtraLight.ttf
10
- - SourceCodePro-ExtraLightIt.ttf
11
- - SourceCodePro-It.ttf
12
- - SourceCodePro-Light.ttf
13
- - SourceCodePro-LightIt.ttf
14
- - SourceCodePro-Medium.ttf
15
- - SourceCodePro-MediumIt.ttf
16
- - SourceCodePro-Regular.ttf
17
- - SourceCodePro-Semibold
18
- - SourceCodePro-SemiboldIt.ttf
19
- - SourceSansPro-Black.ttf
20
- - SourceSansPro-BlackIt.ttf
21
- - SourceSansPro-Bold.ttf
22
- - SourceSansPro-BoldIt.ttf
23
- - SourceSansPro-ExtraLight.ttf
24
- - SourceSansPro-ExtraLightIt.ttf
25
- - SourceSansPro-It.ttf
26
- - SourceSansPro-Light.ttf
27
- - SourceSansPro-LightIt.ttf
28
- - SourceSansPro-Medium.ttf
29
- - SourceSansPro-MediumIt.ttf
30
- - SourceSansPro-Regular.ttf
31
- - SourceSansPro-Semibold.ttf
32
- - SourceSansPro-SemiboldIt.ttf
33
- - SourceSerifPro-Black.ttf
34
- - SourceSerifPro-BlackIt.ttf
35
- - SourceSerifPro-Bold.ttf
36
- - SourceSerifPro-BoldIt.ttf
37
- - SourceSerifPro-ExtraLight.ttf
38
- - SourceSerifPro-ExtraLightIt.ttf
39
- - SourceSerifPro-It.ttf
40
- - SourceSerifPro-Light.ttf
41
- - SourceSerifPro-LightIt.ttf
42
- - SourceSerifPro-Medium.ttf
43
- - SourceSerifPro-MediumIt.ttf
44
- - SourceSerifPro-Regular.ttf
45
- - SourceSerifPro-Semibold.ttf
46
- - SourceSerifPro-SemiboldIt.ttf
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"