Class FontSettings
Represents the font settings in the PowerPoint document.
Inheritance
System.Object
FontSettings
Assembly: Syncfusion.Presentation.Base.dll
Syntax
public class FontSettings : Object
Constructors
FontSettings()
Declaration
Properties
FallbackFonts
Declaration
public FallbackFonts FallbackFonts { get; }
Property Value
Examples
//Open the existing PowerPoint presentation.
IPresentation pptxDoc = Presentation.Open("Template.pptx");
//Adds fallback font for "Hebrew" script type.
pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hebrew, "Arial, Courier New");
//Adds fallback font for "Hindi" script type.
pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hindi, "Mangal, Nirmala UI");
//Converts the first slide into image
Image image = pptxDoc.Slides[0].ConvertToImage(Syncfusion.Drawing.ImageType.Metafile);
//Disposes the image
image.Dispose();
//Close the Presentation
pptxDoc.Close();
'Open the existing PowerPoint presentation.
Dim pptxDoc As IPresentation = Presentation.Open("Template.pptx")
'Adds fallback font for "Hebrew" script type.
pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hebrew, "Arial, Courier New")
'Adds fallback font for "Hindi" script type.
pptxDoc.FontSettings.FallbackFonts.Add(ScriptType.Hindi, "Mangal, Nirmala UI")
'Converts the first slide into image
Dim image As Image = pptxDoc.Slides(0).ConvertToImage(Syncfusion.Drawing.ImageType.Metafile)
'Disposes the image
image.Dispose()
'Close the Presentation
pptxDoc.Close()
Methods
add_SubstituteFont(SubstituteFontEventHandler)
Declaration
public void add_SubstituteFont(SubstituteFontEventHandler value)
Parameters
InitializeFallbackFonts()
Declaration
public void InitializeFallbackFonts()
Examples
//Open the existing PowerPoint presentation.
IPresentation pptxDoc = Presentation.Open("Template.pptx");
//Initializes a set of default fallback fonts.
pptxDoc.FontSettings.FallbackFonts.InitializeDefault();
//Converts the first slide into image
Image image = pptxDoc.Slides[0].ConvertToImage(Syncfusion.Drawing.ImageType.Metafile);
//Disposes the image
image.Dispose();
//Close the Presentation
pptxDoc.Close();
'Open the existing PowerPoint presentation.
Dim pptxDoc As IPresentation = Presentation.Open("Template.pptx")
'Initializes a set of default fallback fonts.
pptxDoc.FontSettings.FallbackFonts.InitializeDefault()
'Converts the first slide into image
Dim image As Image = pptxDoc.Slides(0).ConvertToImage(Syncfusion.Drawing.ImageType.Metafile)
'Disposes the image
image.Dispose()
'Close the Presentation
pptxDoc.Close()
remove_SubstituteFont(SubstituteFontEventHandler)
Declaration
public void remove_SubstituteFont(SubstituteFontEventHandler value)
Parameters
Events
SubstituteFont
Declaration
public event SubstituteFontEventHandler SubstituteFont
Event Type