summaryrefslogtreecommitdiff
path: root/pkg/adobe-source-fonts/gen.lua
blob: f449d3999a8a7fdb2d7734407a10ef6300dd3ef5 (plain)
1
2
3
4
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
47
48
49
50
local function font(name, styles)
	for _, style in ipairs(styles) do
		local path = string.format('share/fonts/%s/%s.otf', name, style)
		local src = string.format('$srcdir/OTF/%s.otf', style)
		file(path, '644', src)
	end
end

font('source-code-pro', {
	'SourceCodePro-Black',
	'SourceCodePro-BlackIt',
	'SourceCodePro-Bold',
	'SourceCodePro-BoldIt',
	'SourceCodePro-ExtraLight',
	'SourceCodePro-ExtraLightIt',
	'SourceCodePro-It',
	'SourceCodePro-Light',
	'SourceCodePro-LightIt',
	'SourceCodePro-Medium',
	'SourceCodePro-MediumIt',
	'SourceCodePro-Regular',
	'SourceCodePro-Semibold',
	'SourceCodePro-SemiboldIt',
})

font('source-sans-pro', {
	'SourceSansPro-Black',
	'SourceSansPro-BlackIt',
	'SourceSansPro-Bold',
	'SourceSansPro-BoldIt',
	'SourceSansPro-ExtraLight',
	'SourceSansPro-ExtraLightIt',
	'SourceSansPro-It',
	'SourceSansPro-Light',
	'SourceSansPro-LightIt',
	'SourceSansPro-Regular',
	'SourceSansPro-Semibold',
	'SourceSansPro-SemiboldIt',
})

font('source-serif-pro', {
	'SourceSerifPro-Black',
	'SourceSerifPro-Bold',
	'SourceSerifPro-ExtraLight',
	'SourceSerifPro-Light',
	'SourceSerifPro-Regular',
	'SourceSerifPro-Semibold',
})

fetch 'curl'