To determine the palette of colors we use the median cut algorithm. While being a correct implementation, enhancements are obviously existing on both the median cut algorithm and the encoding side.
TRY_OR_FAIL()
numTables
totalSfntSize