liberation: add support for custom target directory
PATCH 1/2 liberation: add support for custom target directory
Quoted 5 lines · Daniel Nystr?m
Quoted 2 lines
In other words, which use case is this solving ? If it's a general font location problem, maybe this should not be a Liberation-specific option.
In my opinion, letting default installation directory keep using font named subdir but still configurable would cover most cases.
I think Thomas is right: a unique setting should be used to override the font install dir.
It might look like this in menuconfig:
*** X libraries and helper libraries ***
() Force all fonts to be installed here {*}
[*] DejaVu (Free fonts) --->
[ ] Liberation (Free fonts)
*** X Window managers ***
{*} if this is empty, each font .mk will install in the default directory, as liberation does in current head;
otherwise all fonts will be copied in the directory specified.
How about this?
Luca
PATCH 1/2 liberation: add support for custom target directory
Hello,
Quoted 11 lines · On Wed, 12 Jan 2011 14:51:09 +0100 "Luca Ceresoli" <[email protected]>…
I think Thomas is right: a unique setting should be used to override the font install dir.
It might look like this in menuconfig:
*** X libraries and helper libraries ***
() Force all fonts to be installed here {*}
[*] DejaVu (Free fonts) --->
[ ] Liberation (Free fonts)
*** X Window managers ***
Quoted 5 lines
{*} if this is empty, each font .mk will install in the default directory, as liberation does in current head;
otherwise all fonts will be copied in the directory specified.How about this?
That could be one solution. The other solution would be to hide this from the user, i.e an unvisible configuration option to select the installation location of the fonts (i.e ? fonts in subdirs ? or ? all fonts in /usr/share/fonts ?). ? fonts in subdirs ? would be the default, and ? all fonts in /usr/share/fonts/ ? would be selected by Nano-X/Microwindows. This way, the user wouldn't have to worry about the installation location of fonts.
But for the moment, we don't have any microwin package. It got removed in september 2010, due to upstream inactivity. But it seems that the project is active again, and a new release has been made. So obviously, we could re-add such a package if someone submits it.
Regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/2 liberation: add support for custom target directory
Quoted 22 lines · Thomas Petazzoni
Hello,
Quoted 11 lines · On Wed, 12 Jan 2011 14:51:09 +0100 "Luca Ceresoli" <[email protected]>…
I think Thomas is right: a unique setting should be used to override the font install dir.
It might look like this in menuconfig:
*** X libraries and helper libraries ***
() Force all fonts to be installed here {*}
[*] DejaVu (Free fonts) --->
[ ] Liberation (Free fonts)
*** X Window managers ***Quoted 5 lines
{*} if this is empty, each font .mk will install in the default directory, as liberation does in current head;
otherwise all fonts will be copied in the directory specified.How about this?
Quoted 7 lines
That could be one solution. The other solution would be to hide this from the user, i.e an unvisible configuration option to select the installation location of the fonts (i.e ? fonts in subdirs ? or ? all fonts in
/usr/share/fonts?). ? fonts in subdirs ? would be the default, and ? all fonts in/usr/share/fonts/? would be selected by Nano-X/Microwindows. This way, the user wouldn't have to worry about the installation location of fonts.
That would not be enough in my case.
I don't use Nano-x/Microwin, my setup is based on qt + directfb + freetype. I am not sure which of these components needs fonts in a specific dir, but if fonts are in subdirs they won't be found.
Luca
PATCH 1/2 liberation: add support for custom target directory
Quoted 8 lines · On Fri, 14 Jan 2011 17:48:45 +0100 "Luca Ceresoli" <[email protected]>…
Quoted 7 lines
That could be one solution. The other solution would be to hide this from the user, i.e an unvisible configuration option to select the installation location of the fonts (i.e ? fonts in subdirs ? or ? all fonts in
/usr/share/fonts?). ? fonts in subdirs ? would be the default, and ? all fonts in/usr/share/fonts/? would be selected by Nano-X/Microwindows. This way, the user wouldn't have to worry about the installation location of fonts.
Quoted 4 lines
That would not be enough in my case.
I don't use Nano-x/Microwin, my setup is based on qt + directfb + freetype. I am not sure which of these components needs fonts in a specific dir, but if fonts are in subdirs they won't be found.
Sorry, but I do not understand why it wouldn't be enough. If you need all the fonts in a single directory, you would just select the ? all fonts in /usr/share/fonts ? case, and that would work, no ?
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/2 liberation: add support for custom target directory
Quoted 18 lines · Thomas Petazzoni
Quoted 8 lines · On Fri, 14 Jan 2011 17:48:45 +0100 "Luca Ceresoli" <[email protected]>…
Quoted 8 lines
That could be one solution. The other solution would be to hide this from the user, i.e an unvisible configuration option to select the installation location of the fonts (i.e ? fonts in subdirs ? or ? all fonts in
/usr/share/fonts?). ? fonts in subdirs ? would be the default, and ? all fonts in/usr/share/fonts/? would be selected by Nano-X/Microwindows. This way, the user wouldn't have to worry about the installation location of fonts.Quoted 5 lines
That would not be enough in my case.
I don't use Nano-x/Microwin, my setup is based on qt + directfb + freetype. I am not sure which of these components needs fonts in a specific dir, but if fonts are in subdirs they won't be found.
Quoted 4 lines
Sorry, but I do not understand why it wouldn't be enough. If you need all the fonts in a single directory, you would just select the ? all fonts in
/usr/share/fonts? case, and that would work, no ?
I was commenting on the *automatic* choice of the font location. You proposed an algorithm that would install fonts in a unique directory if microwin is installed. I only wanted ti point out that the condition should include other packages, i.e. it should install in a unique dir if microwin or qt or directfb or freetype are installed.
I am not against automatic choice, but the buildroot user would be more conscious of what's going on if there were an explicit item in menuconfig. Of course the most reasonable default value for such an item would be "microwin or qt or...", and a couple lines explaining that in the help would be wise.
Luca