EmbeddingLicensingRights

PhysicalFontInfo.EmbeddingLicensingRights property

Embedding licensing rights for the font.

public FontEmbeddingLicensingRights EmbeddingLicensingRights { get; }

Examples

Shows how to get license rights information for embedded fonts (PhysicalFontInfo).

FontSettings settings = FontSettings.DefaultInstance;
FontSourceBase source = settings.GetFontsSources()[0];

// Get the list of available fonts.
IList<PhysicalFontInfo> fontInfos = source.GetAvailableFonts();
foreach (PhysicalFontInfo fontInfo in fontInfos)
{
    if (fontInfo.EmbeddingLicensingRights != null)
    {
        Console.WriteLine(fontInfo.EmbeddingLicensingRights.EmbeddingUsagePermissions);
        Console.WriteLine(fontInfo.EmbeddingLicensingRights.BitmapEmbeddingOnly);
        Console.WriteLine(fontInfo.EmbeddingLicensingRights.NoSubsetting);
    }
}

See Also