Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Set-OfficePowerPointThemeFonts

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

Sets PowerPoint theme fonts.

Remarks

Sets PowerPoint theme fonts.

Examples

Authored help example

Set theme Latin fonts.

PS>


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.

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.

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

Parameters

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

Outputs

OfficeIMO.PowerPoint.PowerPointPresentation