XpsFont.ObfuscateFontData(Byte[], Guid) Method

Definition

Obfuscates the font typeface data.

C#
public static void ObfuscateFontData(byte[] fontData, Guid guid);

Parameters

fontData
Byte[]

The typeface data to obfuscate.

guid
Guid

The globally unique identifier (GUID) to use to obfuscate the fontData.

Remarks

The ObfuscateFontData method is provided for use when you are legally obligated to obfuscate licensed proprietary fonts.

While this method does not provide encryption, the ObfuscateFontData method can be used to inhibit users from unzipping proprietary OpenType fonts and installing them separately for other uses.

For more information about font obfuscation, see Section 2.1.7.3 "Embedded Font Obfuscation" in the XML Paper Specification (XPS).

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also