You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
463 B

5 months ago
3 months ago
5 months ago
3 months ago
5 months ago
  1. .PHONY: clean all
  2. DPI?=100
  3. all: main.png
  4. clean:
  5. rm -f main.pdf
  6. rm -f main.svg
  7. rm -f main-tmp.svg
  8. rm -f main.png
  9. main.pdf: main.typ
  10. typst compile main.typ
  11. main.svg: main.pdf
  12. inkscape -o main-tmp.svg main.pdf 2>/dev/null
  13. sed "s#font-family:Andika#font-family:Andika;font-feature-settings: 'ss13' 1#" main-tmp.svg > main.svg
  14. rm main-tmp.svg
  15. main.png: main.svg
  16. inkscape -d $(DPI) -b white --export-png-color-mode=RGB_8 -o main.png main.svg 2>/dev/null