Jump to content

ODTTF

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 1234qwer1234qwer4 (talk | contribs) at 18:14, 25 June 2020 (–{{Typ-stub}}, +{{Digital-typography-stub}} using StubSorter). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

ODTTF
Filename extension
.odttf
Internet media type
application/vnd.ms-package.obfuscated-opentype
Developed byMicrosoft
Type of formatFont
Extended fromOpenType

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.

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

  1. ^ "Okular: xps/generator_xps.cpp". GitHub. Retrieved 24 February 2020.
  2. ^ "resources - Is there a way to use a ODTTF font file in my WPF app?". Stack Overflow. Retrieved 24 February 2020.