* [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output
@ 2017-02-05 5:03 huang_ying_caritas
2017-02-05 6:49 ` 宋文武
0 siblings, 1 reply; 7+ messages in thread
From: huang_ying_caritas @ 2017-02-05 5:03 UTC (permalink / raw)
To: guix-devel
* gnu/packages/fonts.scm (font-gnu-unifont): call mkfontdir for pcf output.
Signed-off-by: "Huang, Ying" <huang.ying.caritas@gmail.com>
---
gnu/packages/fonts.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 1f6d1d0c3..088a6bec9 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -671,13 +671,15 @@ languages, plus Greek and Cyrillic.")
(string-append "PCFDEST=" pcf)
(string-append "CONSOLEDEST=" psf)
"install")
+ (system* "mkfontdir" pcf)
;; Move Texinfo file to the right place.
(mkdir (string-append bin "/share/info"))
(rename-file (string-append bin "/share/unifont/unifont.info.gz")
(string-append bin "/share/info/unifont.info.gz"))
#t))))))
(inputs
- `(("perl" ,perl))) ; for utilities
+ `(("perl" ,perl) ; for utilities
+ ("mkfontdir" ,mkfontdir)))
(synopsis
"Large bitmap font covering Unicode's Basic Multilingual Plane")
(description
--
2.11.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output
2017-02-05 5:03 [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output huang_ying_caritas
@ 2017-02-05 6:49 ` 宋文武
2017-02-05 10:33 ` Huang, Ying
0 siblings, 1 reply; 7+ messages in thread
From: 宋文武 @ 2017-02-05 6:49 UTC (permalink / raw)
To: huang_ying_caritas; +Cc: guix-devel
huang_ying_caritas@163.com writes:
> * gnu/packages/fonts.scm (font-gnu-unifont): call mkfontdir for pcf output.
>
> Signed-off-by: "Huang, Ying" <huang.ying.caritas@gmail.com>
> ---
> gnu/packages/fonts.scm | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
> index 1f6d1d0c3..088a6bec9 100644
> --- a/gnu/packages/fonts.scm
> +++ b/gnu/packages/fonts.scm
> @@ -671,13 +671,15 @@ languages, plus Greek and Cyrillic.")
> (string-append "PCFDEST=" pcf)
> (string-append "CONSOLEDEST=" psf)
> "install")
> + (system* "mkfontdir" pcf)
This will create 'share/fonts/misc/fonts.dir' in the 'pcf' output of
font-gnu-unifont package. When multiple packages have this file,
collisions occour and then I guess it won't work as expected. The right
place to create this file is the 'fonts-dir-file' hook in profiles.scm,
currently it does 'mkfontscale' and 'mkfontdir' only for truetype fonts
under 'share/fonts/truetype', which can be extended for each directory
under 'share/fonts'. What do you think?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output
2017-02-05 6:49 ` 宋文武
@ 2017-02-05 10:33 ` Huang, Ying
2017-02-05 12:19 ` Huang, Ying
0 siblings, 1 reply; 7+ messages in thread
From: Huang, Ying @ 2017-02-05 10:33 UTC (permalink / raw)
To: iyzsong; +Cc: guix-devel
Hi, Wenwu,
Thanks for comments!
iyzsong@member.fsf.org (宋文武) writes:
> huang_ying_caritas@163.com writes:
>
>> * gnu/packages/fonts.scm (font-gnu-unifont): call mkfontdir for pcf output.
>>
>> Signed-off-by: "Huang, Ying" <huang.ying.caritas@gmail.com>
>> ---
>> gnu/packages/fonts.scm | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
>> index 1f6d1d0c3..088a6bec9 100644
>> --- a/gnu/packages/fonts.scm
>> +++ b/gnu/packages/fonts.scm
>> @@ -671,13 +671,15 @@ languages, plus Greek and Cyrillic.")
>> (string-append "PCFDEST=" pcf)
>> (string-append "CONSOLEDEST=" psf)
>> "install")
>> + (system* "mkfontdir" pcf)
>
> This will create 'share/fonts/misc/fonts.dir' in the 'pcf' output of
> font-gnu-unifont package. When multiple packages have this file,
> collisions occour and then I guess it won't work as expected.
I think so too.
> The right
> place to create this file is the 'fonts-dir-file' hook in profiles.scm,
> currently it does 'mkfontscale' and 'mkfontdir' only for truetype fonts
> under 'share/fonts/truetype', which can be extended for each directory
> under 'share/fonts'. What do you think?
I think that is better. I have thought about that before. But I didn't
know whether that is necessary in general at that time.
Best Regards,
Huang, Ying
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output
2017-02-05 10:33 ` Huang, Ying
@ 2017-02-05 12:19 ` Huang, Ying
2017-02-14 17:56 ` Danny Milosavljevic
0 siblings, 1 reply; 7+ messages in thread
From: Huang, Ying @ 2017-02-05 12:19 UTC (permalink / raw)
To: iyzsong; +Cc: guix-devel
"Huang, Ying" <huang_ying_caritas@163.com> writes:
> Hi, Wenwu,
>
> Thanks for comments!
>
> iyzsong@member.fsf.org (宋文武) writes:
>
>> huang_ying_caritas@163.com writes:
>>
>>> * gnu/packages/fonts.scm (font-gnu-unifont): call mkfontdir for pcf output.
>>>
>>> Signed-off-by: "Huang, Ying" <huang.ying.caritas@gmail.com>
>>> ---
>>> gnu/packages/fonts.scm | 4 +++-
>>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
>>> index 1f6d1d0c3..088a6bec9 100644
>>> --- a/gnu/packages/fonts.scm
>>> +++ b/gnu/packages/fonts.scm
>>> @@ -671,13 +671,15 @@ languages, plus Greek and Cyrillic.")
>>> (string-append "PCFDEST=" pcf)
>>> (string-append "CONSOLEDEST=" psf)
>>> "install")
>>> + (system* "mkfontdir" pcf)
>>
>> This will create 'share/fonts/misc/fonts.dir' in the 'pcf' output of
>> font-gnu-unifont package. When multiple packages have this file,
>> collisions occour and then I guess it won't work as expected.
>
> I think so too.
>
>> The right
>> place to create this file is the 'fonts-dir-file' hook in profiles.scm,
>> currently it does 'mkfontscale' and 'mkfontdir' only for truetype fonts
>> under 'share/fonts/truetype', which can be extended for each directory
>> under 'share/fonts'. What do you think?
>
> I think that is better. I have thought about that before. But I didn't
> know whether that is necessary in general at that time.
One problem of this solution is that some font packages (for example,
fonts-misc-misc) already have fonts.dir, to avoid conflict, it is better
to remove fonts.dir in all font packages and generate fonts.dir in
fonts-dir-file, I think that is good. But I don't know whether others
think that is a good idea.
Best Regards,
Huang, Ying
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output
2017-02-05 12:19 ` Huang, Ying
@ 2017-02-14 17:56 ` Danny Milosavljevic
2017-02-15 10:55 ` Alex Kost
0 siblings, 1 reply; 7+ messages in thread
From: Danny Milosavljevic @ 2017-02-14 17:56 UTC (permalink / raw)
To: Huang, Ying; +Cc: guix-devel
Hi,
> One problem of this solution is that some font packages (for example,
> fonts-misc-misc) already have fonts.dir, to avoid conflict, it is better
> to remove fonts.dir in all font packages and generate fonts.dir in
> fonts-dir-file, I think that is good. But I don't know whether others
> think that is a good idea.
If it can happen that multiple packages install to share/fonts/<xxx> (certainly true for share/fonts/truetype and probably true for other <format>-directories) and fonts.dir then is conflicting (and doesn't ever contain all the entries of the directory), I think that your idea is very good (and how it was done before is dead wrong).
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output
2017-02-14 17:56 ` Danny Milosavljevic
@ 2017-02-15 10:55 ` Alex Kost
2017-02-15 11:51 ` Huang, Ying
0 siblings, 1 reply; 7+ messages in thread
From: Alex Kost @ 2017-02-15 10:55 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
Danny Milosavljevic (2017-02-14 18:56 +0100) wrote:
> Hi,
>
>> One problem of this solution is that some font packages (for example,
>> fonts-misc-misc) already have fonts.dir, to avoid conflict, it is better
>> to remove fonts.dir in all font packages and generate fonts.dir in
>> fonts-dir-file, I think that is good. But I don't know whether others
>> think that is a good idea.
>
> If it can happen that multiple packages install to share/fonts/<xxx>
> (certainly true for share/fonts/truetype and probably true for other
> <format>-directories) and fonts.dir then is conflicting (and doesn't
> ever contain all the entries of the directory), I think that your idea
> is very good (and how it was done before is dead wrong).
I completely agree; removing all "fonts.dir" and "fonts.alias" files
from packages and regenerating them at profile time looks like a good
idea to me.
--
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output
2017-02-15 10:55 ` Alex Kost
@ 2017-02-15 11:51 ` Huang, Ying
0 siblings, 0 replies; 7+ messages in thread
From: Huang, Ying @ 2017-02-15 11:51 UTC (permalink / raw)
To: Alex Kost, 宋文武, Danny Milosavljevic; +Cc: guix-devel
Hi, All,
Alex Kost <alezost@gmail.com> writes:
> Danny Milosavljevic (2017-02-14 18:56 +0100) wrote:
>
>> Hi,
>>
>>> One problem of this solution is that some font packages (for example,
>>> fonts-misc-misc) already have fonts.dir, to avoid conflict, it is better
>>> to remove fonts.dir in all font packages and generate fonts.dir in
>>> fonts-dir-file, I think that is good. But I don't know whether others
>>> think that is a good idea.
>>
>> If it can happen that multiple packages install to share/fonts/<xxx>
>> (certainly true for share/fonts/truetype and probably true for other
>> <format>-directories) and fonts.dir then is conflicting (and doesn't
>> ever contain all the entries of the directory), I think that your idea
>> is very good (and how it was done before is dead wrong).
>
> I completely agree; removing all "fonts.dir" and "fonts.alias" files
> from packages and regenerating them at profile time looks like a good
> idea to me.
Good to know this. I will implement it as this.
Best Regards,
Huang, Ying
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-02-15 11:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-05 5:03 [PATCH] gnu: font-gnu-unifont: Call mkfontdir for pcf output huang_ying_caritas
2017-02-05 6:49 ` 宋文武
2017-02-05 10:33 ` Huang, Ying
2017-02-05 12:19 ` Huang, Ying
2017-02-14 17:56 ` Danny Milosavljevic
2017-02-15 10:55 ` Alex Kost
2017-02-15 11:51 ` Huang, Ying
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.