[GRASS-dev] iconv a required dependency for using Freetype?

Hamish hamish_nospam at yahoo.com
Tue May 8 02:39:41 EDT 2007


Hamish
> If mixing stroke fonts and TTF fonts in the same list, sorting them by
> name alone would be a pain. I'd rather see the stroke fonts grouped
> together, at either the top or the bottom of the list.

Michael Barton wrote:
> While I can see the value in this, actually doing it would be a real
> pain. I have to sort to remove duplicates. Trying to reorganize the
> list again by pulling out the stroke fonts and moving into a group is
> not easy. Sorry.

so wait to add them until after your sort|uniq?

note the last act of tools/mkftcap is "| sort | uniq", so some of this
work is already done for you. Where do the duplicates come from then?

`sort` has a number of options like --dictionary-order and --ignore-case
which, if cross-platform, could help pre-sort the freetypecap list as
needed. Also note `sort` has a --unique flag, although I am not sure if
that operates just on the --key column or the entire line. If it just
works on the key column, that would be cool, although that means
arbitrarily throwing away (perhaps better) variants.


Hamish




More information about the grass-dev mailing list