File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 16
16
- name : Fetch tags
17
17
run : |
18
18
git fetch --prune --tags ||:
19
+ - name : Setup prerequisites
20
+ run : sudo apt-get -qq install fonts-texgyre
19
21
- name : Fontship make
20
22
uses : theleagueof/fontship@v0
21
23
# Work around fontship v0.10.0 an below trying to force install-dist on first pass
28
30
args : documentation/waterfalls.sil
29
31
- name : SILE
30
32
id : sile
31
- uses : sile-typesetter/sile@v0
32
- with :
33
- args : documentation/sample.sil
33
+ run : |
34
+ docker run -t -v "/usr/share/texmf/fonts/opentype/public/tex-gyre/:/fonts" ghcr.io/sile-typesetter/sile:v0 -- documentation/sample.sil
35
+ # uses: sile-typesetter/sile@v0
36
+ # with:
37
+ # args: documentation/sample.sil
34
38
- name : Fontship package
35
39
id : fontship
36
40
uses : theleagueof/fontship@v0
Original file line number Diff line number Diff line change @@ -28,13 +28,20 @@ $$(BUILDDIR)/$1-%-instance.otf: $$(BUILDDIR)/$1-%-normalized.sfd $(GSUB) $(BUILD
28
28
29
29
endef
30
30
31
+ depend_font = fc-match "$1" family | $(GREP ) -qx "$1"
32
+
33
+ .PHONY : tex-gyre-fonts
34
+ tex-gyre-fonts :
35
+ $(CONTAINERIZED ) && pacman --noconfirm --needed -Sq $@ || :
36
+ $(call depend_font,TeX Gyre Termes)
37
+
31
38
define POSTFONTSHIPEVAL =
32
39
33
40
$$(DOCSDIR ) /preview.pdf: $$(DOCSDIR ) /preview.tex | $$(STATICOTFS ) $$(BUILDDIR )
34
41
xelatex --interaction=batchmode -output-directory=$$(BUILDDIR ) $$<
35
42
cp $(BUILDDIR ) /$$(@F ) $$@
36
43
37
- $$(DOCSDIR ) /sample.pdf: $$(DOCSDIR ) /sample.sil $$(STATICOTFS )
44
+ $$(DOCSDIR ) /sample.pdf: $$(DOCSDIR ) /sample.sil $$(STATICOTFS ) tex-gyre-fonts
38
45
sile -o $$@ -d versions $$<
39
46
40
47
$$(DOCSDIR ) /waterfalls.pdf: $$(DOCSDIR ) /waterfalls.sil $$(STATICOTFS )
You can’t perform that action at this time.
0 commit comments