API Reference
Class
OfficeFontContainerDecoder
Detects and safely unwraps reusable web-font containers into OpenType bytes.
Inheritance
- Object
- OfficeFontContainerDecoder
Methods
public static OfficeFontContainerFormat Detect(Byte[] data) #Returns:
OfficeFontContainerFormatDetects a supported or known font container without decoding it.
Parameters
- data System.Byte[]
TryDecodeToOpenType 2 overloads
public static Boolean TryDecodeToOpenType(Byte[] data, out Byte[] openTypeData, out OfficeFontContainerFormat format, out String error) #Returns:
BooleanAttempts to decode a direct OpenType, WOFF 1, or single-face WOFF 2 container using the default 128 MiB output limit.
Parameters
- data System.Byte[]
- openTypeData System.Byte[]@
- format OfficeIMO.Drawing.OfficeFontContainerFormat@
- error System.String@
public static Boolean TryDecodeToOpenType(Byte[] data, Int32 maximumDecodedBytes, out Byte[] openTypeData, out OfficeFontContainerFormat format, out String error) #Returns:
BooleanAttempts to decode a direct OpenType, WOFF 1, or single-face WOFF 2 container with an explicit output limit.
Parameters
- data System.Byte[]
- maximumDecodedBytes System.Int32
- openTypeData System.Byte[]@
- format OfficeIMO.Drawing.OfficeFontContainerFormat@
- error System.String@
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object