mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
gnu: Add r-showtext.
* gnu/packages/cran.scm (r-showtext): New variable.
This commit is contained in:
parent
369e1bb6a8
commit
d7937243ba
1 changed files with 32 additions and 0 deletions
|
@ -16485,3 +16485,35 @@ (define-public r-showtextdb
|
||||||
"This package provides font files that can be used by the @code{showtext}
|
"This package provides font files that can be used by the @code{showtext}
|
||||||
package.")
|
package.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public r-showtext
|
||||||
|
(package
|
||||||
|
(name "r-showtext")
|
||||||
|
(version "0.7")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (cran-uri "showtext" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1ihgqzfia36b0n9aa41p1w98wxxvs1lxh1zz0570hbfqmph1sk73"))))
|
||||||
|
(properties `((upstream-name . "showtext")))
|
||||||
|
(build-system r-build-system)
|
||||||
|
(inputs
|
||||||
|
`(("freetype" ,freetype)
|
||||||
|
("libpng" ,libpng)
|
||||||
|
("zlib" ,zlib)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("r-showtextdb" ,r-showtextdb)
|
||||||
|
("r-sysfonts" ,r-sysfonts)))
|
||||||
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||||
|
(home-page "https://github.com/yixuan/showtext")
|
||||||
|
(synopsis "Using fonts more easily in R graphs")
|
||||||
|
(description
|
||||||
|
"This package aims to make it easy to use various types of
|
||||||
|
fonts (TrueType, OpenType, Type 1, web fonts, etc.) in R graphs, and supports
|
||||||
|
most output formats of R graphics including PNG, PDF and SVG. Text glyphs
|
||||||
|
will be converted into polygons or raster images, hence after the plot has
|
||||||
|
been created, it no longer relies on the font files. No external software
|
||||||
|
such as Ghostscript is needed to use this package.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
Loading…
Reference in a new issue