ODTTF
ODTTF (Obfuscated OpenType) is an embedded font file type used in Microsoft's XML Paper Specification (XPS) and Office Open XML formats. The file type refers to an obfuscated subsetted font based on the fonts used in the original document.
Filename extension |
.odttf |
---|---|
Internet media type |
application/vnd.ms-package.obfuscated-opentype |
Developed by | Microsoft |
Type of format | Font |
Extended from | OpenType |
The files can be extracted from the documentation by changing the filename extension to .zip, so the archive can be browsed and extracted. The MIME type is Microsoft's own invention and has not been submitted to the IANA registry.
According to the source code of Okular (see function parseGUID() and method XpsFile::loadFontByName()), the first 32 bytes of the font file are obfuscated by XOR using the font file name (a GUID). The rest of the file is normal OpenType.[1] The byte order of the GUID representation coincides with that of the .NET Framework.[2]
References
- "Okular: xps/generator_xps.cpp". GitHub. Retrieved 24 February 2020.
- "resources - Is there a way to use a ODTTF font file in my WPF app?". Stack Overflow. Retrieved 24 February 2020.