Class FontSettings
Represents the font settings in the PowerPoint document.
Inheritance
System.Object
FontSettings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Presentation
Assembly: Syncfusion.Presentation.Base.dll
Syntax
public class FontSettings
Constructors
FontSettings()
Declaration
public FontSettings()
Properties
FallbackFonts
Declaration
public FallbackFonts FallbackFonts { get; }
Property Value
Type |
---|
FallbackFonts |
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
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()
Events
SubstituteFont
Declaration
public event SubstituteFontEventHandler SubstituteFont
Event Type
Type |
---|
SubstituteFontEventHandler |