[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: gnu: texlive-fonts-cm: Build bitmap fonts at 600dpi.
From: |
guix-commits |
Subject: |
03/08: gnu: texlive-fonts-cm: Build bitmap fonts at 600dpi. |
Date: |
Thu, 24 Jan 2019 07:46:53 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 26a0506104fe96a2a7ee5066a0108eaa975339ec
Author: Ricardo Wurmus <address@hidden>
Date: Thu Jan 24 08:24:08 2019 +0100
gnu: texlive-fonts-cm: Build bitmap fonts at 600dpi.
* gnu/packages/tex.scm (texlive-fonts-cm)[arguments]: Build pk files and
install them.
---
gnu/packages/tex.scm | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 2ece9b8..7efd52d 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -612,31 +612,37 @@ documents.")
(string-append (getcwd) ":"
mf "/share/texmf-dist/metafont/base")))
(mkdir "build")
+ (mkdir-p "pk/ljfour/public/cm/dpi600")
(for-each (lambda (font)
(format #t "building font ~a\n" font)
(invoke "mf" "-progname=mf"
"-output-directory=build"
(string-append "\\"
"mode:=ljfour; "
- "mag:=1; "
+ "mag:=1+0/600; "
"batchmode; "
"input "
- (basename font ".mf"))))
+ (basename font ".mf")))
+ (invoke "gftopk"
+ (string-append "build/"
+ (basename font ".mf") ".600gf")
+ (string-append "pk/ljfour/public/cm/dpi600/"
+ (basename font ".mf") ".pk")))
(find-files "." "cm(.*[0-9]+.*|inch)\\.mf$"))
#t))
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (tfm (string-append
- out "/share/texmf-dist/fonts/tfm/public/cm"))
- (mf (string-append
- out "/share/texmf-dist/fonts/source/public/cm"))
- (type1 (string-append
- out
"/share/texmf-dist/fonts/type1/public/amsfonts/cm")))
+ (let* ((out (assoc-ref outputs "out"))
+ (fonts (string-append out "/share/texmf-dist/fonts/"))
+ (pk (string-append fonts "pk"))
+ (tfm (string-append fonts "tfm/public/cm"))
+ (mf (string-append fonts "source/public/cm"))
+ (type1 (string-append fonts "type1/public/amsfonts/cm")))
(for-each (cut install-file <> tfm)
(find-files "build" "\\.*"))
(for-each (cut install-file <> mf)
(find-files "." "\\.mf"))
+ (copy-recursively "pk" pk)
(mkdir-p type1)
(copy-recursively (assoc-ref inputs "cm-type1") type1)
#t))))))
- branch master updated (d39a54f -> 67f39dd), guix-commits, 2019/01/24
- 02/08: gnu: texlive-latex-base: Put fewer paths on TEXINPUTS., guix-commits, 2019/01/24
- 04/08: gnu: texlive-latex-fancyvrb: Build fvrb-ex., guix-commits, 2019/01/24
- 06/08: gnu: Add texlive-tex-fontinst-base., guix-commits, 2019/01/24
- 01/08: gnu: catimg: Simplify., guix-commits, 2019/01/24
- 05/08: licenses: Add lppl1.1+., guix-commits, 2019/01/24
- 03/08: gnu: texlive-fonts-cm: Build bitmap fonts at 600dpi.,
guix-commits <=
- 08/08: gnu: pari-gp: Address TeX errors., guix-commits, 2019/01/24
- 07/08: gnu: texlive-fonts-amsfonts: Build more fonts., guix-commits, 2019/01/24