Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Set-OfficePowerPointThemeFonts

Aliases: PptThemeFonts
Module
PSWriteOffice
Aliases
PptThemeFonts
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointPresentation

Sets PowerPoint theme fonts.

Syntax

Set-OfficePowerPointThemeFonts
[-AllMasters]
[-ClearMissing]
[-MajorComplexScript <String>]
[-MajorEastAsian <String>]
[-MajorLatin <String>]
[-Master <Int32>]
[-MinorComplexScript <String>]
[-MinorEastAsian <String>]
[-MinorLatin <String>]
[-PassThru]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Set theme Latin fonts.

New-OfficePowerPoint -Path .\Examples\Documents\PowerPointThemeFonts.pptx {
    Set-OfficePowerPointThemeFonts -MajorLatin 'Aptos Display' -MinorLatin 'Aptos' -AllMasters
    Add-OfficePowerPointSlide -Layout 1 -PassThru | Set-OfficePowerPointSlideTitle -Title 'Theme fonts'
}

Updates theme fonts before creating slides.

Parameters

-AllMasters SwitchParameter optional
Apply the changes across all slide masters.
-ClearMissing SwitchParameter optional
Clear unspecified font slots instead of keeping existing values.
-MajorComplexScript String optional
Major complex script font.
-MajorEastAsian String optional
Major East Asian font.
-MajorLatin String optional
Major Latin font.
-Master Int32 optional
Slide master index to update when not using AllMasters.
-MinorComplexScript String optional
Minor complex script font.
-MinorEastAsian String optional
Minor East Asian font.
-MinorLatin String optional
Minor Latin font.
-PassThru SwitchParameter optional
Emit the presentation after update.
-Presentation PowerPointPresentation optionalpipeline: True (ByValue)
Presentation to update (optional inside New-OfficePowerPoint).

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.