tottf: accept exactly 65535 glyphs as in the sfnt specification

Closes #1581.

r? @frank-trampe