4 weights := Regular Bold
6 webFormats := woff woff2
11 mainFonts := $(foreach w,$(weights), $(foreach f,$(mainFormats), fonts/$(f)/Xolonium-$(w).$(f)))
12 webFonts := $(foreach w,$(weights), $(foreach f,$(webFormats), fonts/$(f)/Xolonium-$(w).$(f)))
13 xonoticFonts := xonotic/Xolonium-GPL-Regular.otf xonotic/Xolonium-GPL-Bold.otf
25 xonotic: ${xonoticFonts}
30 @ rm -f ${xonoticFonts}
35 fonts/otf/Xolonium-%.otf: \
36 tmp/otf/Xolonium-%.otf \
37 tmp/fea/Xolonium-%.fea
39 @ ./tools/clean-font.py $^ $@
41 fonts/ttf/Xolonium-%.ttf: \
42 tmp/ttf/Xolonium-%.ttf \
43 tmp/fea/Xolonium-%.fea
45 @ ./tools/clean-font.py $^ $@
47 fonts/woff/Xolonium-%.woff: \
48 fonts/ttf/Xolonium-%.ttf
50 @ ./tools/make-woff.py $^ $@
52 fonts/woff2/Xolonium-%.woff2: \
53 fonts/ttf/Xolonium-%.ttf
55 @ ./tools/make-woff.py $^ $@
60 tmp/otf/Xolonium-%.otf: \
61 src/sfd/Xolonium-%.sfd \
62 src/sfd/Xolonium-Common.sfd \
63 tmp/fea/Xolonium-%.fea
65 @ ./tools/make-font.py $^ NONE ${version} $@
67 tmp/ttf/Xolonium-%.ttf: \
68 src/sfd/Xolonium-%.sfd \
69 src/sfd/Xolonium-Common.sfd \
70 tmp/fea/Xolonium-%.fea \
71 tmp/hti/Xolonium-%.hti
73 @ ./tools/make-font.py $^ ${version} $@
75 .PRECIOUS: tmp/fea/Xolonium-%.fea
76 tmp/fea/Xolonium-%.fea: \
77 src/fea/Xolonium-Common.fea \
78 src/fea/Xolonium-Common-Class-Latin.fea \
79 src/fea/Xolonium-Common-Class-Greek.fea \
80 src/fea/Xolonium-Common-Class-Cyrillic.fea \
81 src/fea/Xolonium-Common-Kern-All.fea \
82 src/fea/Xolonium-Common-Kern-Latin.fea \
83 src/fea/Xolonium-Common-Kern-Greek.fea \
84 src/fea/Xolonium-Common-Kern-Cyrillic.fea \
85 src/fea/Xolonium-Common-Kern.fea
87 @ sed -f tools/replace-names.sed $^ > $@
89 .PRECIOUS: tmp/hti/Xolonium-%.hti
90 tmp/hti/Xolonium-%.hti: \
91 src/hti/Xolonium-Common-meta.hti \
92 src/hti/Xolonium-%-cvt.hti \
93 src/hti/Xolonium-Common-fpgm.hti \
94 src/hti/Xolonium-%-prep.hti \
95 src/hti/Xolonium-Common-glyphs.hti \
96 src/hti/Xolonium-Common-composites.hti
103 xonotic/Xolonium-GPL-%.otf: \
104 tmp/otf/Xolonium-GPL-%.otf \
105 tmp/fea/Xolonium-%.fea
106 @ ./tools/clean-font.py $^ $@
108 tmp/otf/Xolonium-GPL-%.otf: \
109 tmp/sfd/Xolonium-GPL-%.sfd \
110 src/sfd/Xolonium-Common.sfd \
111 tmp/fea/Xolonium-%.fea
112 @ ./tools/make-font.py $^ NONE ${version} $@
114 tmp/sfd/Xolonium-GPL-%.sfd: \
115 src/sfd/Xolonium-%.sfd
118 @ sed -i 's|FontName: Xolonium|FontName: Xolonium-GPL|' $@
119 @ sed -i 's|FullName: Xolonium|FullName: Xolonium GPL|' $@
120 @ sed -i 's|FamilyName: Xolonium|FamilyName: Xolonium GPL|' $@
121 @ sed -i 's|LangName:.*|LangName: 1033 "" "" "$*" "" "" "" "" "" "" "Severin Meyer" "" "https://gitlab.com/sev/xolonium" "" "This font is licensed under the GNU General Public License, either version 2 of the license, or any later version. This font is provided WITHOUT WARRANTY OF ANY KIND, either express or implied. See the GNU General Public License for more details.+AAoACgAA-As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version." "https://www.gnu.org/licenses/gpl-2.0"|' $@