Search Results for

    Show / Hide Table of Contents

    Interface IFont

    Namespace: IronPPT.Interfaces
    Assembly: IronPPT.dll
    Syntax
    public interface IFont

    Typeface choices for a run of text, the family, the size, and the script-specific variants, sit behind IFont. The contract exposes FontFamily and FontSize for the everyday case, plus the per-script faces PowerPoint tracks separately: LatinFont, EastAsia, ComplexScript, and SymbolFont. Setting these lets a document render correctly across mixed-script content rather than forcing one face on every character. Coding against the contract keeps text-styling logic independent of the concrete font type.

    The concrete implementor in IronPPT is Font, the object a developer assigns or reads when controlling how a run looks. FontSize is typed as the concrete FontSize measurement object, so a developer sets the size through its unit properties rather than passing a bare number. A developer typically receives a font from a text run's style and adjusts FontFamily and FontSize for most work, reaching for the script-specific properties only when a presentation mixes Latin, East Asian, complex, and symbol text.

    font.FontFamily = "Calibri";
    font.LatinFont = "Calibri";

    The add text how-to covers adding and formatting text, and the paragraph style example sets fonts while styling content.

    Properties

    ComplexScript

    Declaration
    string ComplexScript { get; set; }
    Property Value
    Type Description
    System.String

    EastAsia

    Declaration
    string EastAsia { get; set; }
    Property Value
    Type Description
    System.String

    FontFamily

    Declaration
    string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    FontSize

    Declaration
    FontSize FontSize { get; set; }
    Property Value
    Type Description
    FontSize

    LatinFont

    Declaration
    string LatinFont { get; set; }
    Property Value
    Type Description
    System.String

    SymbolFont

    Declaration
    string SymbolFont { get; set; }
    Property Value
    Type Description
    System.String
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet