Change font theme (W/P)

Modified on Mon, 5 Oct at 1:55 PM

This feature empowers users to change the font theme in the entire presentation in PowerPoint or document in Word with one click. The font theme must be saved as an XML file located in the client's Content folder of BaseExtensions. In this way, the command targets an XML file when setting the font theme.

Module is located here:

Code
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\80_P_changeFontTheme.xml

CMD

<Cmd case="BaseExtensions:change-font-theme" filePath="x"/>

Parameter

filePath

Define the file path to the file located in the Content folder of BaseExtensions.

Example of usage

The command below illustrates an example of usage where the font theme is changed to Arial.

XML
<Cmd case="BaseExtensions:change-font-theme" filePath="Arial.xml"/>

The file is located following this path:

...\OfficeExtensions\Content\BaseExtensions\Arial.xml

Bind to font theme

The feature can be extended by using the following command to binding normal text with same font name as theme font names.

CMD

<Cmd case="BaseExtensions:binds-to-font-theme" traverseShapes="x"/>

Parameter

traverseShapes

This parameter does only work in Word, and will be ignored in PowerPoint. Define to be true if the command should also bind text in shapes (this takes longer time), or false if it should only bind text in document and tables.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article