Changeset 1dafcb8 in git


Ignore:
Timestamp:
15/06/10 05:23:22 (9 years ago)
Author:
Olly Betts <olly@…>
Branches:
add-show-splays, line_contents, master, stereo, svn/github/master, svn/origin/master, svn/survex-1_1, svn/tags/1.1.14, svn/tags/1.1.15, svn/tags/1.1.16, svn/tags/1.2.0, svn/tags/1.2.1, svn/tags/1.2.2, svn/tags/1.2.3, svn/tags/1.2.4, svn/tags/1.2.5, svn/tags/v1_1_13, svn/trunk, travis-osx
Children:
9ce6a65
Parents:
845fac6
Message:

lib/afm2txf.pl: Extend to cover ISO-8859-1, not just ASCII.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3407 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r845fac6 r1dafcb8  
     1Tue Jun 15 04:22:59 GMT 2010  Olly Betts <olly@survex.com>
     2
     3        * lib/afm2txf.pl: Extend to cover ISO-8859-1, not just ASCII.
     4
    15Tue Jun 15 04:08:34 GMT 2010  Olly Betts <olly@survex.com>
    26
  • lib/afm2txf.pl

    r845fac6 r1dafcb8  
    3333my $DOWNSAMPLE = 16;
    3434
    35 # The 94 printable ASCII characters (and the space) and their
     35# The printable ISO-8859-1 characters (and space and hard space) and their
    3636# postscript glyph names.  We use names because not all postscript
    3737# fonts are encoded using ASCII.  AFM metrics generated by ttf2afm, in
     
    6060             's'=>115, 't'=>116, 'u'=>117, 'v'=>118, 'w'=>119,
    6161             'x'=>120, 'y'=>121, 'z'=>122, 'braceleft'=>123,
    62              'bar'=>124, 'braceright'=>125, 'asciitilde'=>126);
     62             'bar'=>124, 'braceright'=>125, 'asciitilde'=>126,
     63             'space'=>160, 'exclamdown'=>161, 'cent'=>162, 'sterling'=>163,
     64             'currency'=>164, 'yen'=>165, 'brokenbar'=>166, 'section'=>167,
     65             'dieresis'=>168, 'copyright'=>169, 'ordfeminine'=>170, 'guillemotleft'=>171,
     66             'logicalnot'=>172, 'hyphen'=>173, 'registered'=>174, 'macron'=>175,
     67             'degree'=>176, 'plusminus'=>177, 'twosuperior'=>178, 'threesuperior'=>179,
     68             'acute'=>180, 'mu'=>181, 'paragraph'=>182, 'bullet'=>183,
     69             'cedilla'=>184, 'onesuperior'=>185, 'ordmasculine'=>186, 'guillemotright'=>187,
     70             'onequarter'=>188, 'onehalf'=>189, 'threequarters'=>190, 'questiondown'=>191,
     71             'Agrave'=>192, 'Aacute'=>193, 'Acircumflex'=>194, 'Atilde'=>195,
     72             'Adieresis'=>196, 'Aring'=>197, 'AE'=>198, 'Ccedilla'=>199,
     73             'Egrave'=>200, 'Eacute'=>201, 'Ecircumflex'=>202, 'Edieresis'=>203,
     74             'Igrave'=>204, 'Iacute'=>205, 'Icircumflex'=>206, 'Idieresis'=>207,
     75             'Eth'=>208, 'Ntilde'=>209, 'Ograve'=>210, 'Oacute'=>211,
     76             'Ocircumflex'=>212, 'Otilde'=>213, 'Odieresis'=>214, 'multiply'=>215,
     77             'Oslash'=>216, 'Ugrave'=>217, 'Uacute'=>218, 'Ucircumflex'=>219,
     78             'Udieresis'=>220, 'Yacute'=>221, 'Thorn'=>222, 'germandbls'=>223,
     79             'agrave'=>224, 'aacute'=>225, 'acircumflex'=>226, 'atilde'=>227,
     80             'adieresis'=>228, 'aring'=>229, 'ae'=>230, 'ccedilla'=>231,
     81             'egrave'=>232, 'eacute'=>233, 'ecircumflex'=>234, 'edieresis'=>235,
     82             'igrave'=>236, 'iacute'=>237, 'icircumflex'=>238, 'idieresis'=>239,
     83             'eth'=>240, 'ntilde'=>241, 'ograve'=>242, 'oacute'=>243,
     84             'ocircumflex'=>244, 'otilde'=>245, 'odieresis'=>246, 'divide'=>247,
     85             'oslash'=>248, 'ugrave'=>249, 'uacute'=>250, 'ucircumflex'=>251,
     86             'udieresis'=>252, 'yacute'=>253, 'thorn'=>254, 'ydieresis'=>255
     87             );
    6388
    6489my %metrics = ();
Note: See TracChangeset for help on using the changeset viewer.