menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FontSettings - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FontSettings

    Represents the font settings in the PowerPoint document.

    Inheritance
    System.Object
    FontSettings
    Namespace: Syncfusion.Presentation
    Assembly: Syncfusion.Presentation.Portable.dll
    Syntax
    public class FontSettings : Object

    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

    add_SubstituteFont(SubstituteFontEventHandler)

    Declaration
    public void add_SubstituteFont(SubstituteFontEventHandler value)
    Parameters
    Type Name Description
    SubstituteFontEventHandler value

    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
    Type Name Description
    SubstituteFontEventHandler value

    Events

    SubstituteFont

    Declaration
    public event SubstituteFontEventHandler SubstituteFont
    Event Type
    Type
    SubstituteFontEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved