[GRASS-dev] problems with mkftcap

William Kyngesburye woklist at kyngchaos.com
Thu May 3 01:00:10 EDT 2007


That works.  (still a minor problem with Arial, but not the other  
Arial varieties, it's probably a corrupt font file or other non- 
fontconfig/grass issue)

One note - did you catch my other comment a while back?  the index  
from fc-list is useless, since fc-list appears to only list font  
files, thus only showing index 0 for any font file.  We'll have to  
find another way to figure out available faces within a font file.

On May 2, 2007, at 11:28 PM, Glynn Clements wrote:

>
> Daniel Calvelo wrote:
>
>>> If I take enough time to let my brain process the sed command, it
>>> looks like it's something in:
>>>
>>> \(.*\)\.\([^.]*\):
>>>
>>> that is, the file extension is not optional.  Spaces are OK in that.
>>
>> Try \(.*\)(\.\([^.]*\))?: instead.
>
> A ? in a sed regexp is a GNU extension.
>
> I've updated mkftcap to handle files without an extension separately:
>
>         fc-list :outline file index \
>             | sed -n \
>                   -e 's!^\(.*\)/\(.*\)\.\([^.]*\): :index=0$!\2:\1/ 
> \2.\3:utf-8:!p' \
>                   -e 's!^\(.*\)/\(.*\)\.\([^.]*\): :index=\([0-9]\+ 
> \)$!\2:\1/\2.\3|\4:utf-8:!p' \
>                   -e 's!^\(.*\)/\(.*\): :index=0$!\2:\1/\2:utf-8:!p' \
>                   -e 's!^\(.*\)/\(.*\): :index=\([0-9]\+\)$!\2:\1/ 
> \2|\3:utf-8:!p'
>
> -- 
> Glynn Clements <glynn at gclements.plus.com>

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled  
with hyena offal?
Second Pogril: I don't know.  Why IS life like sticking your head in  
a bucket filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy





More information about the grass-dev mailing list