Compress all XML data types.

Also, simplify the regex’s search for font types and make it a bit more
sane to read.