PhysicalFontInfo Class

Wordize.Fonts.PhysicalFontInfo class. Specifies information about physical font available to Wordize font engine.

PhysicalFontInfo class

Specifies information about physical font available to Wordize font engine.

public class PhysicalFontInfo

Properties

NameDescription
EmbeddingLicensingRights { get; }Embedding licensing rights for the font.
FilePath { get; }Path to the font file if any.
FontFamilyName { get; }Family name of the font.
FullFontName { get; }Full name of the font.
Version { get; }Version string of the font.

Examples

Demonstrates how to get the list of font sources specified in the font settings and the fonts available in each source.

private static void PrintAvaialbleFonts(FontSettings fontSettings)
{
    FontSourceBase[] fontSources = fontSettings.GetFontsSources();
    foreach (FontSourceBase fontSource in fontSources)
    {
        Console.WriteLine("----------{0}----------", fontSource.Type);
        foreach (PhysicalFontInfo pfi in fontSource.GetAvailableFonts())
        {
            Console.WriteLine(pfi.FullFontName);
        }
    }
}

See Also