Page 1 of 1

feature request: <include> in ~/.magick/type.xml

Posted: 2008-12-06T10:44:54-07:00
by RetroJ
Hello,

I have found by experimentation that <include> tags don't work in my ~/.magick/type.xml. It would be a convenience to me if this was supported.

I have a large collection of fonts, split up into several different directories. In each of these directories, I have created a type.xml with font definitions for all the files in that directory. I would like to be able to use include tags in my ~/.magick/type.xml in order to selectively add the font definitions from particular directories. This would be more convenient than defining all the fonts directly in ~/.magick/type.xml because I would be able to include or exclude a group of related fonts by changing a single line in the file.

Thank you.

Re: feature request: <include> in ~/.magick/type.xml

Posted: 2008-12-06T17:56:38-07:00
by magick
The include directive is relative to the current directory so you will need to specify ../ in your filename to traverse the file hierarchy.

Re: feature request: <include> in ~/.magick/type.xml

Posted: 2008-12-06T18:07:04-07:00
by RetroJ
magick wrote:The include directive is relative to the current directory so you will need to specify ../ in your filename to traverse the file hierarchy.
Yes that works. Will you consider supporting absolute paths too, in the future?

Thank you.

Re: feature request: <include> in ~/.magick/type.xml

Posted: 2008-12-06T18:34:19-07:00
by magick
Absolute paths are already in ImageMagick 6.4.7-3 beta available sometime tomorrow.

Re: feature request: <include> in ~/.magick/type.xml

Posted: 2008-12-06T18:48:09-07:00
by RetroJ
magick wrote:Absolute paths are already in ImageMagick 6.4.7-3 beta available sometime tomorrow.
Many thanks. I will be able to make immediate use of the feature.