1
0
Fork 0

Add Inter font

main
Ethan Reece 2024-07-31 18:31:59 -05:00
parent 79c9bedf4f
commit 63aee0dc7b
Signed by: me
GPG Key ID: 198E9EB433DB1B28
5 changed files with 38 additions and 6 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
\#*\#
,*
.DS_Store
out

View File

@ -0,0 +1,24 @@
(define-module (font-rsms-inter-package)
#:use-module (guix)
#:use-module (guix build-system font)
#:use-module ((guix licenses) #:prefix license:))
(define-public font-rsms-inter
(package
(name "font-rsms-inter")
(version "4.0")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/rsms/inter/releases/download/"
"v" version "/Inter-" version ".zip"))
(file-name (string-append name "-" version ".zip"))
(sha256
(base32
"196iyyvsq58z21x4r4b0qjvfki3apnnq3dvw5884z8318mfhm5zz"))))
(build-system font-build-system)
(home-page "https://rsms.me/inter")
(synopsis "The Inter font family")
(description
"Inter is a typeface carefully crafted & designed for computer screens. Inter features a tall x-height to aid in readability of mixed-case and lower-case text. Inter is a variable font with several OpenType features, like contextual alternates that adjusts punctuation depending on the shape of surrounding glyphs, slashed zero for when you need to disambiguate \"0\" from \"o\", tabular numbers, etc.")
(license license:silofl1.1)))

View File

@ -4,7 +4,8 @@
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix git-download)
#:use-module (typst-package))
#:use-module (typst-package)
#:use-module (font-rsms-inter-package))
(define vcs-file?
;; Return true if the given file is under version control.
@ -20,7 +21,8 @@
#:select? vcs-file?))
(build-system gnu-build-system)
(native-inputs
`(("rust-typst-cli" ,rust-typst-cli-0.11)))
`(("rust-typst-cli" ,rust-typst-cli-0.11)
("font-rsms-inter" ,font-rsms-inter))
(synopsis "My resume in Typst")
(description "My resume in Typst")
(home-page "https://ethanreece.com")

View File

@ -1,5 +1,8 @@
default:
guix time-machine --channels=./channels.scm.lock -- shell --container --manifest=./manifest.scm -- typst compile main.typ
guix time-machine --channels=./channels.scm.lock -- shell --container --emulate-fhs --manifest=./manifest.scm -- typst compile ./src/main.typ ./out/resume.pdf --font-path=/usr/share/fonts
fonts:
guix time-machine --channels=./channels.scm.lock -- shell --container --emulate-fhs --manifest=./manifest.scm -- typst fonts --font-path=/usr/share/fonts
dev:
guix time-machine --channels=./channels.scm.lock -- shell --manifest=./manifest.scm
@ -8,4 +11,4 @@ update:
guix time-machine --channels=./channels.scm -- describe --format=channels > ./channels.scm.lock
run: default
xdg-open ./main.pdf
xdg-open ./out/resume.pdf

View File

@ -1,5 +1,7 @@
(add-to-load-path ".guix/modules")
(use-modules (typst-package)
(resume-package))
(resume-package)
(font-rsms-inter-package)
(gnu packages fontutils))
(packages->manifest (list rust-typst-cli-0.11))
(packages->manifest (list rust-typst-cli-0.11 font-rsms-inter fontconfig coreutils))