alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class FontSettings

    Represents the font settings in the PowerPoint document.

    Inheritance
    object
    FontSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Presentation
    Assembly: Syncfusion.Presentation.NET.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
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved