GetSubstitutions

FontsManager.GetSubstitutions method

Gets the information about fonts that will be replaced on the presentation’s rendering.

public IEnumerable<FontSubstitutionInfo> GetSubstitutions()

Return Value

Collection of all fonts substitution FontSubstitutionInfo.

Examples

using (Presentation pres = new Presentation("pres.pptx"))
{
    foreach (FontSubstitutionInfo fontSubstitution in pres.FontsManager.GetSubstitutions())
    {
        Console.WriteLine("{0} -> {1}", fontSubstitution.OriginalFontName, fontSubstitution.SubstitutedFontName);
    }
}        

See Also