[varLib.featureVars] Py3

This commit is contained in:
Behdad Esfahbod 2018-11-09 14:54:13 -05:00
parent 0be1636176
commit f2b26304ff

View File

@ -77,9 +77,9 @@ def popCount(v):
return popCount(v >> 32) + popCount(v & 0xFFFFFFFF)
# HACKMEM 169
y = (v >> 1) & 033333333333
y = v - y - ((y >> 1) & 033333333333)
return (((y + (y >> 3)) & 030707070707) % 077)
y = (v >> 1) & 0xDB6DB6DB
y = v - y - ((y >> 1) & 0xDB6DB6DB)
return (((y + (y >> 3)) & 0xC71C71C7) % 0x3F)
def addFeatureVariations(font, conditionalSubstitutions):