From e5ae28e8424192ce7ea19897473601f590dc80ea Mon Sep 17 00:00:00 2001 From: jvr Date: Sat, 25 May 2002 08:22:22 +0000 Subject: [PATCH] whoops, the new GlyphOrder table stuff broke ttdump -s git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@263 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/ttLib/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/__init__.py b/Lib/fontTools/ttLib/__init__.py index b17474002..c12c8357d 100644 --- a/Lib/fontTools/ttLib/__init__.py +++ b/Lib/fontTools/ttLib/__init__.py @@ -42,7 +42,7 @@ Dumping 'prep' table... """ # -# $Id: __init__.py,v 1.31 2002-05-24 09:58:04 jvr Exp $ +# $Id: __init__.py,v 1.32 2002-05-25 08:22:22 jvr Exp $ # import os @@ -630,6 +630,8 @@ def tagToIdentifier(tag): 'OS/2' -> 'O_S_2f_2' """ import re + if tag == "GlyphOrder": + return tag assert len(tag) == 4, "tag should be 4 characters long" while len(tag) > 1 and tag[-1] == ' ': tag = tag[:-1] @@ -643,6 +645,8 @@ def tagToIdentifier(tag): def identifierToTag(ident): """the opposite of tagToIdentifier()""" + if ident == "GlyphOrder": + return ident if len(ident) % 2 and ident[0] == "_": ident = ident[1:] assert not (len(ident) % 2)