From 3c3c32c5a4db928ab702d54adddb32e9a3cf2bea Mon Sep 17 00:00:00 2001 From: jvr Date: Tue, 12 Mar 2002 14:34:43 +0000 Subject: [PATCH] Charnames can contain a period anywhere, not just at the start. git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@178 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/afmLib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/afmLib.py b/Lib/fontTools/afmLib.py index e927b6bd4..d428051a3 100644 --- a/Lib/fontTools/afmLib.py +++ b/Lib/fontTools/afmLib.py @@ -8,7 +8,7 @@ import re import string import types -__version__ = "$Id: afmLib.py,v 1.3 2001-06-24 15:11:31 Just Exp $" +__version__ = "$Id: afmLib.py,v 1.4 2002-03-12 14:34:43 jvr Exp $" # every single line starts with a "word" @@ -20,7 +20,7 @@ charRE = re.compile( "\s*;\s*WX\s+" # ; WX "(\d+)" # width "\s*;\s*N\s+" # ; N - "(\.?[A-Za-z0-9_]+)" # charname + "([.A-Za-z0-9_]+)" # charname "\s*;\s*B\s+" # ; B "(-?\d+)" # left "\s+" #