Class LicenseFlags
Represents the embedding and licensing restrictions declared in the
OS/2 table's fsType field (OpenType spec §5.7).
Inherited Members
Namespace: DRIT.Drawing.Font.Core
Assembly: DRIT.Drawing.dll
Syntax
public sealed class LicenseFlags
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
Constructors
LicenseFlags(ushort)
Initializes a new LicenseFlags instance from the specified fsType value.
Declaration
public LicenseFlags(ushort fsType)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | fsType | The raw OS/2 fsType value. |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
Properties
BitmapEmbeddingOnly
Bit 9 (mask 0x0200). Only bitmaps contained in the font may be embedded; no outline data may be embedded.
Declaration
public bool BitmapEmbeddingOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
FSTypeAbsent
True if fsType == 0, meaning the font declares no embedding
restrictions and may be freely embedded.
Declaration
public bool FSTypeAbsent { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
FsType
Raw OS/2 fsType value.
Declaration
public ushort FsType { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
IsEditableEmbedding
Bit 3 (mask 0x0008), bits 1–2 clear. The font may be embedded and documents using it may be edited on the target system.
Declaration
public bool IsEditableEmbedding { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
IsInstallableEmbedding
No restriction bits (1–3) are set; the font may be permanently installed on target systems (installable embedding).
Declaration
public bool IsInstallableEmbedding { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
IsPreviewAndPrintEmbedding
Bit 2 (mask 0x0004), bit 1 clear. The font may be embedded for preview and print but must not be installed on the target system.
Declaration
public bool IsPreviewAndPrintEmbedding { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
IsRestrictedLicenseEmbedding
Bit 1 (mask 0x0002). The font must not be modified or embedded in any manner without explicit permission of the legal owner.
Declaration
public bool IsRestrictedLicenseEmbedding { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).
NoSubsetting
Bit 8 (mask 0x0100). The font may not be subsetted prior to embedding.
Declaration
public bool NoSubsetting { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Obtain an instance via TtfOs2Table.GetLicenseFlags().
A null return from that method indicates the OS/2 table is absent.
When the instance is non-null but FSTypeAbsent is true,
the font declares no embedding restrictions (fsType == 0).