[sfnt] reformat and streamline woff2 code