Skip to content

Commit

Permalink
Download Egyptian font for samples
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 31, 2024
1 parent 74ea16e commit affd617
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ MAKEFLAGS += --jobs=$(shell nproc)
.SECONDEXPANSION:
.DELETE_ON_ERROR:

.PRECIOUS: .fonts/%

CURL ?= curl
GIT ?= git
GROFF ?= groff
MAGICK ?= magick
Expand Down Expand Up @@ -69,6 +72,16 @@ all: $(PDFS)
node_modules:
$(NPM) ci

.PHONY: fonts
fonts: .fonts/EgyptianOpenType.ttf

.fonts:
mkdir -p $@

.fonts/EgyptianOpenType.ttf: | .fonts
$(CURL) -fsSL https://github.com/microsoft/font-tools/raw/main/EgyptianOpenType/font/eot.ttf -o $@
touch $@

%-groff.pdf %-groff.toml: TYPESETTER_ARGS = $(call get_typesetter_args,content/$(notdir $(basename $*)).md,$(notdir $(basename $<)))

%-groff.pdf %-groff.toml: %/groff.groff
Expand Down
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
pkgs.gentium
pkgs.libertinus
pkgs.stix-two
".fonts"
];
};
inherit (gitignore.lib) gitignoreSource;
Expand All @@ -37,6 +38,7 @@
devShells.default = mkShell {
buildInputs = [
cacert
curl
gentium
ghostscript
git
Expand All @@ -59,6 +61,7 @@
];
FONTCONFIG_FILE = fontsConf;
shellHook = ''
make fonts
'';
};
}
Expand Down

0 comments on commit affd617

Please sign in to comment.