commit | 972af5af639cc036cddd4534c051cc42bbf81672 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 31 18:16:36 2013 +0800 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Dec 31 18:16:36 2013 +0800 |
tree | d63f8a2cfebd7635784a5f4db4c7656f4bab0a31 | |
parent | 233663207d75f02a0dcc7892b8ea658d414ac921 [diff] [blame] |
[merge] Sort script records
diff --git a/Lib/fontTools/merge.py b/Lib/fontTools/merge.py index d71ed77..0faa8b5 100644 --- a/Lib/fontTools/merge.py +++ b/Lib/fontTools/merge.py
@@ -353,7 +353,7 @@ otTables.ScriptList.mergeMap = { 'ScriptCount': sum, - 'ScriptRecord': sumLists, # XXX sort + 'ScriptRecord': lambda lst: sorted(sumLists(lst), key=lambda s: s.ScriptTag), } otTables.FeatureList.mergeMap = {