From 5ea2acad56c80f10e22337ee9109e36c4848a336 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 14 Jan 2016 12:27:39 +0000 Subject: [PATCH] [otlLib] "Hide" internal function --- Lib/fontTools/otlLib/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/otlLib/builder.py b/Lib/fontTools/otlLib/builder.py index 0f79be3c9..1d28d1471 100644 --- a/Lib/fontTools/otlLib/builder.py +++ b/Lib/fontTools/otlLib/builder.py @@ -24,7 +24,7 @@ def buildAlternateSubst(mapping): return self -def getLigatureKey(components): +def _getLigatureKey(components): """Computes a key for ordering ligatures in a GSUB Type-4 lookup. When building the OpenType lookup, we need to make sure that @@ -44,7 +44,7 @@ def buildLigatureSubst(mapping): # with fontTools >= 3.1: # self.ligatures = dict(mapping) self.ligatures = {} - for components in sorted(mapping.keys(), key=getLigatureKey): + for components in sorted(mapping.keys(), key=_getLigatureKey): ligature = ot.Ligature() ligature.Component = components[1:] ligature.CompCount = len(components)