varStore
- fontTools.varLib.varStore.VarData_addItem(self, deltas, *, round=<built-in function round>)[source]
- fontTools.varLib.varStore.VarStore_optimize(self, use_NO_VARIATION_INDEX=True, quantization=1)[source]
Optimize storage. Returns mapping from old VarIdxes to new ones.
- fontTools.varLib.varStore.VarStore_subset_varidxes(self, varIdxes, optimize=True, retainFirstMap=False, advIdxes={})[source]
- fontTools.varLib.varStore.bit_count(self, /)
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
>>> bin(13) '0b1101' >>> (13).bit_count() 3