all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Suggest add font: font-wqy-microhei
@ 2017-01-13  1:50 tumashu
  2017-01-13  9:51 ` Danny Milosavljevic
  0 siblings, 1 reply; 7+ messages in thread
From: tumashu @ 2017-01-13  1:50 UTC (permalink / raw)
  To: guix

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

wqy-microhei is a very useful chinese fonts, suggest add it to guix.

1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README
2. http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload&ts=1484272152&use_mirror=nchc

[-- Attachment #2: Type: text/html, Size: 560 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Suggest add font: font-wqy-microhei
  2017-01-13  1:50 Suggest add font: font-wqy-microhei tumashu
@ 2017-01-13  9:51 ` Danny Milosavljevic
  2017-01-13 13:30   ` tumashu
  2017-01-13 15:16   ` tumashu
  0 siblings, 2 replies; 7+ messages in thread
From: Danny Milosavljevic @ 2017-01-13  9:51 UTC (permalink / raw)
  To: tumashu; +Cc: guix

Hi,

On Fri, 13 Jan 2017 09:50:02 +0800 (CST)
tumashu <tumashu@163.com> wrote:

> wqy-microhei is a very useful chinese fonts, suggest add it to guix.
> 
> 1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README
> 2. http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload&ts=1484272152&use_mirror=nchc

We already have font-wqy-zenhai which is very similar in setup. If you want, check out gnu/packages/fonts.scm and just copy the font-wqy-zenhei block and modify the url, name and checksum in the copy.

Also, is there a reason wqy-microhei is marked "beta"? Is it not finished? What's the difference between wqy-microhei and wqy-zenhei?

If you want to quickly build and use your own packages, the easiest is:

$ mkdir -p ${HOME}/.local/guix/wip
$ export GUIX_PACKAGE_PATH=${HOME}/.local/guix

Then put your own Scheme files in there, containing package definitions. They need to be valid Scheme modules. For example the (new) file ${HOME}/.local/guix/wip/fonts.scm should have the following header:

(define-module (wip fonts)
  #:use-module (ice-9 regex)
  #:use-module (guix utils)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system trivial)
  #:use-module (gnu packages base)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages fontutils)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python)
  #:use-module (gnu packages xorg)
  #:use-module (gnu packages zip))

And then the package definitions should follow, in this manner:

(define-public font-wqy-microhei
  (package
    (name "font-wqy-microhei")
    ...))

Replace "..." by what you copied from font-wqy-zenhai.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: Suggest add font: font-wqy-microhei
  2017-01-13  9:51 ` Danny Milosavljevic
@ 2017-01-13 13:30   ` tumashu
  2017-01-13 15:16   ` tumashu
  1 sibling, 0 replies; 7+ messages in thread
From: tumashu @ 2017-01-13 13:30 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix

[-- Attachment #1: Type: text/plain, Size: 2142 bytes --]

Thanks for your help, I have coded like you said, but when I install it, I can't find it with fc-list,
Any suggestion?









At 2017-01-13 17:51:51, "Danny Milosavljevic" <dannym@scratchpost.org> wrote:
>Hi,
>
>On Fri, 13 Jan 2017 09:50:02 +0800 (CST)
>tumashu <tumashu@163.com> wrote:
>
>> wqy-microhei is a very useful chinese fonts, suggest add it to guix.
>> 
>> 1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README
>> 2. http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload&ts=1484272152&use_mirror=nchc
>
>We already have font-wqy-zenhai which is very similar in setup. If you want, check out gnu/packages/fonts.scm and just copy the font-wqy-zenhei block and modify the url, name and checksum in the copy.
>
>Also, is there a reason wqy-microhei is marked "beta"? Is it not finished? What's the difference between wqy-microhei and wqy-zenhei?
>
>If you want to quickly build and use your own packages, the easiest is:
>
>$ mkdir -p ${HOME}/.local/guix/wip
>$ export GUIX_PACKAGE_PATH=${HOME}/.local/guix
>
>Then put your own Scheme files in there, containing package definitions. They need to be valid Scheme modules. For example the (new) file ${HOME}/.local/guix/wip/fonts.scm should have the following header:
>
>(define-module (wip fonts)
>  #:use-module (ice-9 regex)
>  #:use-module (guix utils)
>  #:use-module ((guix licenses) #:prefix license:)
>  #:use-module (guix packages)
>  #:use-module (guix download)
>  #:use-module (guix build-system gnu)
>  #:use-module (guix build-system trivial)
>  #:use-module (gnu packages base)
>  #:use-module (gnu packages compression)
>  #:use-module (gnu packages fontutils)
>  #:use-module (gnu packages perl)
>  #:use-module (gnu packages pkg-config)
>  #:use-module (gnu packages python)
>  #:use-module (gnu packages xorg)
>  #:use-module (gnu packages zip))
>
>And then the package definitions should follow, in this manner:
>
>(define-public font-wqy-microhei
>  (package
>    (name "font-wqy-microhei")
>    ...))
>
>Replace "..." by what you copied from font-wqy-zenhai.

[-- Attachment #2: Type: text/html, Size: 2516 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: Suggest add font: font-wqy-microhei
  2017-01-13  9:51 ` Danny Milosavljevic
  2017-01-13 13:30   ` tumashu
@ 2017-01-13 15:16   ` tumashu
  2017-01-13 21:23     ` Danny Milosavljevic
  1 sibling, 1 reply; 7+ messages in thread
From: tumashu @ 2017-01-13 15:16 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix

[-- Attachment #1: Type: text/plain, Size: 2238 bytes --]

When I install a font with a non-root account,  the font just can't be found by "fc-list",
and run "fc-cache" is useless too, But run "fc-cache -f" can cache the installed font,
it it a bug or just my machine problom?






At 2017-01-13 17:51:51, "Danny Milosavljevic" <dannym@scratchpost.org> wrote:
>Hi,
>
>On Fri, 13 Jan 2017 09:50:02 +0800 (CST)
>tumashu <tumashu@163.com> wrote:
>
>> wqy-microhei is a very useful chinese fonts, suggest add it to guix.
>> 
>> 1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README
>> 2. http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload&ts=1484272152&use_mirror=nchc
>
>We already have font-wqy-zenhai which is very similar in setup. If you want, check out gnu/packages/fonts.scm and just copy the font-wqy-zenhei block and modify the url, name and checksum in the copy.
>
>Also, is there a reason wqy-microhei is marked "beta"? Is it not finished? What's the difference between wqy-microhei and wqy-zenhei?
>
>If you want to quickly build and use your own packages, the easiest is:
>
>$ mkdir -p ${HOME}/.local/guix/wip
>$ export GUIX_PACKAGE_PATH=${HOME}/.local/guix
>
>Then put your own Scheme files in there, containing package definitions. They need to be valid Scheme modules. For example the (new) file ${HOME}/.local/guix/wip/fonts.scm should have the following header:
>
>(define-module (wip fonts)
>  #:use-module (ice-9 regex)
>  #:use-module (guix utils)
>  #:use-module ((guix licenses) #:prefix license:)
>  #:use-module (guix packages)
>  #:use-module (guix download)
>  #:use-module (guix build-system gnu)
>  #:use-module (guix build-system trivial)
>  #:use-module (gnu packages base)
>  #:use-module (gnu packages compression)
>  #:use-module (gnu packages fontutils)
>  #:use-module (gnu packages perl)
>  #:use-module (gnu packages pkg-config)
>  #:use-module (gnu packages python)
>  #:use-module (gnu packages xorg)
>  #:use-module (gnu packages zip))
>
>And then the package definitions should follow, in this manner:
>
>(define-public font-wqy-microhei
>  (package
>    (name "font-wqy-microhei")
>    ...))
>
>Replace "..." by what you copied from font-wqy-zenhai.

[-- Attachment #2: Type: text/html, Size: 2612 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Suggest add font: font-wqy-microhei
  2017-01-13 15:16   ` tumashu
@ 2017-01-13 21:23     ` Danny Milosavljevic
  2017-01-14  1:21       ` tumashu
  0 siblings, 1 reply; 7+ messages in thread
From: Danny Milosavljevic @ 2017-01-13 21:23 UTC (permalink / raw)
  To: tumashu; +Cc: guix

Hi,

On Fri, 13 Jan 2017 23:16:53 +0800 (CST)
tumashu  <tumashu@163.com> wrote:

> When I install a font with a non-root account,  the font just can't be found by "fc-list",
> and run "fc-cache" is useless too, But run "fc-cache -f" can cache the installed font,
> it it a bug or just my machine problom?

I don't know, sorry. It may be that fc-cache uses timestamps (mtime) to figure out whether a directory changed or not and that won't work for us since we always use the same mtime (for reproducibility). But that's just a guess - I hope someone else knows it...

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: Suggest add font: font-wqy-microhei
  2017-01-13 21:23     ` Danny Milosavljevic
@ 2017-01-14  1:21       ` tumashu
  2017-01-14 14:37         ` ng0
  0 siblings, 1 reply; 7+ messages in thread
From: tumashu @ 2017-01-14  1:21 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

If we need to use "fc-cache -f", suggest add it to document.








At 2017-01-14 05:23:55, "Danny Milosavljevic" <dannym@scratchpost.org> wrote:
>Hi,
>
>On Fri, 13 Jan 2017 23:16:53 +0800 (CST)
>tumashu  <tumashu@163.com> wrote:
>
>> When I install a font with a non-root account,  the font just can't be found by "fc-list",
>> and run "fc-cache" is useless too, But run "fc-cache -f" can cache the installed font,
>> it it a bug or just my machine problom?
>
>I don't know, sorry. It may be that fc-cache uses timestamps (mtime) to figure out whether a directory changed or not and that won't work for us since we always use the same mtime (for reproducibility). But that's just a guess - I hope someone else knows it...
>

[-- Attachment #2: Type: text/html, Size: 971 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re:Re: Suggest add font: font-wqy-microhei
  2017-01-14  1:21       ` tumashu
@ 2017-01-14 14:37         ` ng0
  0 siblings, 0 replies; 7+ messages in thread
From: ng0 @ 2017-01-14 14:37 UTC (permalink / raw)
  To: guix-devel

Hi,

tumashu <tumashu@163.com> writes:

> If we need to use "fc-cache -f", suggest add it to document.

Maybe we finally have enough fonts to justify a
font-build-system, which would run "fc-cache -f" at the end of
it, or do something similar?
I have often seen this (and done this) when I used Gentoo.

> At 2017-01-14 05:23:55, "Danny Milosavljevic" <dannym@scratchpost.org> wrote:
>>Hi,
>>
>>On Fri, 13 Jan 2017 23:16:53 +0800 (CST)
>>tumashu  <tumashu@163.com> wrote:
>>
>>> When I install a font with a non-root account,  the font just can't be found by "fc-list",
>>> and run "fc-cache" is useless too, But run "fc-cache -f" can cache the installed font,
>>> it it a bug or just my machine problom?
>>
>>I don't know, sorry. It may be that fc-cache uses timestamps (mtime) to figure out whether a directory changed or not and that won't work for us since we always use the same mtime (for reproducibility). But that's just a guess - I hope someone else knows it...
>>

What do you think?
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-14 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-13  1:50 Suggest add font: font-wqy-microhei tumashu
2017-01-13  9:51 ` Danny Milosavljevic
2017-01-13 13:30   ` tumashu
2017-01-13 15:16   ` tumashu
2017-01-13 21:23     ` Danny Milosavljevic
2017-01-14  1:21       ` tumashu
2017-01-14 14:37         ` ng0

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.