From 6b20edf1fbf880d9c7cf581072263046204af18c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 May 2023 17:08:20 -0600 Subject: [PATCH] [varStore] Fix algorithm comment to match code --- Lib/fontTools/varLib/varStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/varLib/varStore.py b/Lib/fontTools/varLib/varStore.py index a4f0b996e..87d4aa714 100644 --- a/Lib/fontTools/varLib/varStore.py +++ b/Lib/fontTools/varLib/varStore.py @@ -519,7 +519,7 @@ def VarStore_optimize(self, use_NO_VARIATION_INDEX=True): # this the "best new encoding". # - Sort todo list by decreasing gain (empirical). # - While todo list is not empty: - # - Pop the first item from todo list, as current item. + # - Pop the last item from todo list, as current item. # - For each each encoding in the todo list, try combining it # with the current item. Calculate total gain as the gain of # this combined encoding minus the gain of combining each of