[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
font encoding not replaced
From: |
Werner LEMBERG |
Subject: |
font encoding not replaced |
Date: |
Wed, 01 Jun 2005 16:44:55 +0200 (CEST) |
[lilypond CVS 2005-06-01 08:03]
[fontforge 8-May-2005]
The script substitute-encoding.py fails for the PFAemmentaler-xx.pfa
fonts. Reason: The fonts created by fontforge (at least from this
version) don't contain
/Encoding 256 array
0 1 255 { 1 index exch /.notdef put} for
but
/Encoding StandardEncoding def
See the patch below. Additionally I suggest to provide a custom
encoding for PFAaybabtu.pfa also, maybe covering the range
brace160-brace415.
Werner
======================================================================
--- substitute-encoding.old 2005-06-01 12:43:44.000000000 +0200
+++ substitute-encoding 2005-06-01 16:31:14.537501568 +0200
@@ -53,5 +53,8 @@
str = re.sub ('( 0 1 255 { 1 index exch /.notdef put} for)',
'\\1 \n %s' % put_glyphs,
str)
+ str = re.sub ('StandardEncoding def',
+ '256 array\n0 1 255 { 1 index exch /.notdef put}
for\n%sreadonly def' % put_glyphs,
+ str)
open (filename, 'w').write (str)
- font encoding not replaced,
Werner LEMBERG <=