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
This commit is contained in:
parent
f9104bcc2c
commit
3c3c32c5a4
@ -8,7 +8,7 @@ import re
|
|||||||
import string
|
import string
|
||||||
import types
|
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"
|
# every single line starts with a "word"
|
||||||
@ -20,7 +20,7 @@ charRE = re.compile(
|
|||||||
"\s*;\s*WX\s+" # ; WX
|
"\s*;\s*WX\s+" # ; WX
|
||||||
"(\d+)" # width
|
"(\d+)" # width
|
||||||
"\s*;\s*N\s+" # ; N
|
"\s*;\s*N\s+" # ; N
|
||||||
"(\.?[A-Za-z0-9_]+)" # charname
|
"([.A-Za-z0-9_]+)" # charname
|
||||||
"\s*;\s*B\s+" # ; B
|
"\s*;\s*B\s+" # ; B
|
||||||
"(-?\d+)" # left
|
"(-?\d+)" # left
|
||||||
"\s+" #
|
"\s+" #
|
||||||
|
Loading…
x
Reference in New Issue
Block a user