[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: TrueType fonts in X4



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad <lists@anomie.ods.org> writes:

> There seems to be much confusion on how to get TrueType fonts working
> with the new X4 packages. 

Thanks for the clear instructions. I sorta had TrueType stuff working,
but I think I've got stuff totally sorted now.

One wibble, however:

> 4. Sorting fonts.scale properly (more or less)
[snip]
>     perl -we 'open X, "<fonts.scale" or die;
>               %h=(); $n=<X>;
> 	      while(<X>){
> 	      /^(\S+\.ttf)/; unshift @{$h{$1}}, $_;
> 	      }
> 	      open X, ">fonts.scale" or die;
> 	      print X $n;
> 	      for $x (sort keys %h){ %print %X %@{$h{$x}}; }'

You've got a couple typos on that last line; I rewrote it like so:

        perl -e 'open X , "fonts.scale" or die; $n = <X>;
        while(<X>) { /^(\S+\.ttf)/; unshift @{$h{$1}} , $_; }
        open O , ">fonts.scale" or die; 
        print O $n; print O @{$h{$_}} foreach ( sort keys %h )'

but then this isn't golf. 8^)=  The important thing is to remove the 3
'%' from the final line.

Oh, and one more thing -- instead of saying:

>  Download mkfontalias.py from Kristin's site

why not give the URL? <URL:http://home.c2i.net/dark/mkfontalias.py>

Thanks again for the good work, Brad.

john.

- -- 
- ----------------------------------------------------------------------------
           [ John S Jacobs Anderson ]------><URL:mailto:jacobs@genehack.org>
[ Genehack: Not your daddy's weblog ]------><URL:http://genehack.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Mailcrypt 3.5.5 and Gnu Privacy Guard

iD8DBQE6D1cIWRJRdOm3KFARAspEAKCX0Wm0//oEDXx03zuPLCI3k2TcSACfaRSw
U7R+ro3hf3r145wVKP+kZi8=
=eH5t
-----END PGP SIGNATURE-----



Reply to: