Commit 1f395cbaf91be284f443c27b8b35be0edd788c34

Qunxin Liu 2023-10-12T10:06:00

[instancer] templatize the priority queue, use custom type for varstore when instantiating varstore, we need to pop a tuple like (combined_gain, i, j), if combined gain is the same then we compare the value of i, and then j. So we'd like to use custom type as the key when popping from the queue. This would match fonttool's algorithm cause it uses heappop().