Browse Source

gnu: Add WenQuanYi ZenHei font.

* gnu/packages/fonts.scm (font-wqy-zenhei): New variable.
Ricardo Wurmus 6 years ago
1 changed files with 47 additions and 0 deletions
  1. +47

+ 47
- 0
gnu/packages/fonts.scm View File

@ -359,3 +359,50 @@ fonts are intended to support the characters necessary to render or display
text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.
(license license:asl2.0)))
(define-public font-wqy-zenhei
(name "font-wqy-zenhei")
(version "0.9.45")
(source (origin
(method url-fetch)
(uri (string-append
version ".tar.gz"))
(file-name (string-append "wqy-zenhei-" version ".tar.gz"))
(build-system trivial-build-system)
`(#:modules ((guix build utils))
(use-modules (guix build utils))
(let ((PATH (string-append (assoc-ref %build-inputs "tar") "/bin:"
(assoc-ref %build-inputs "gzip") "/bin"))
(font-dir (string-append (assoc-ref %outputs "out")
(setenv "PATH" PATH)
(mkdir-p font-dir)
(system* "tar" "xvf" (assoc-ref %build-inputs "source"))
(chdir "wqy-zenhei")
(copy-file "wqy-zenhei.ttc"
(string-append font-dir "wqy-zenhei.ttc"))))))
`(("gzip" ,gzip)
("tar" ,tar)))
(home-page "")
(synopsis "CJK font")
"WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese outline
font. It is designed for general purpose text formatting and on-screen
display of Chinese characters and symbols from many other languages.
WenQuanYi Zen Hei provides a rather complete coverage to Chinese Hanzi glyphs,
including both simplified and traditional forms. The total glyph number in
this font is over 35,000, including over 21,000 Chinese Hanzi. This font has
full coverage to GBK(CP936) charset, CJK Unified Ideographs, as well as the
code-points needed for zh_cn, zh_sg, zh_tw, zh_hk, zh_mo, ja (Japanese) and
ko (Korean) locales for fontconfig.")
;; GPLv2 with font embedding exception
(license license:gpl2)))