# Render Presentations with Fallback Fonts in Python

> Render presentations with fallback fonts in Aspose.Slides for Python via .NET – keep text consistent across PPT, PPTX and ODP with step-by-step code samples.

Source: https://docs.aspose.com/slides/python-net/render-presentation-with-fallback-font/
Updated: 2026-08-05


## **Overview**

Aspose.Slides allows you to render presentations using fallback font rules. This article shows how to create a fallback font rules collection, modify its rules by removing or adding fallback fonts, and assign the collection to the `FontsManager.font_fall_back_rules_collection` property.

Once the fallback font rules collection is assigned to the presentation's `fonts_manager`, the rules are applied during operations such as saving, rendering, and converting the presentation. The example demonstrates how to use the configured rules when rendering a slide thumbnail and saving it as a PNG image.

## **Render a Slide Using Fallback Font Rules**

The following example includes these steps:

1. We [create fallback font rules collection](/slides/python-net/create-fallback-fonts-collection/).
1. [Remove](https://reference.aspose.com/slides/python-net/aspose.slides/fontfallbackrule/remove/) a fallback font rule and [add_fall_back_fonts](https://reference.aspose.com/slides/python-net/aspose.slides/fontfallbackrule/add_fall_back_fonts/) to another rule.
1. Set rules collection to [FontsManager.font_fall_back_rules_collection](https://reference.aspose.com/slides/python-net/aspose.slides/fontsmanager/font_fall_back_rules_collection/) property.
1. With [Presentation.save()](https://reference.aspose.com/slides/python-net/aspose.slides/presentation/) method we can save presentation in the same format, or save it in another one. After fallback font rules collection is set to FontsManager, these rules are applied during any operations over the presentation: save, render, convert, etc.

```py
import aspose.slides as slides

# Create new instance of a rules collection
rulesList = slides.FontFallBackRulesCollection()

# create a number of rules
rulesList.add(slides.FontFallBackRule(0x0B80, 0x0BFF, "Vijaya"))
rulesList.add(slides.FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic"))

for fallBackRule in rulesList:
	#Trying to remove FallBack font "Tahoma" from loaded rules
	fallBackRule.remove("Tahoma")

	#And to update of rules for specified range
	if fallBackRule.range_end_index >= 0x4000 and fallBackRule.range_start_index < 0x5000:
		fallBackRule.add_fall_back_fonts("Verdana")

#Also we can remove any existing rules from list
if len(rulesList) > 0:
	rulesList.remove(rulesList[0])

with slides.Presentation("input.pptx") as pres:
	#Assigning a prepared rules list for using
	pres.fonts_manager.font_fall_back_rules_collection = rulesList

	# Rendering of thumbnail with using of initialized rules collection and saving to PNG
	with pres.slides[0].get_image(1, 1) as img:
		img.save("Slide_0.png", slides.ImageFormat.PNG)
```


{{% alert color="primary" %}} 
Read more about how to [Convert PowerPoint Slides to PNG in Python](/slides/python-net/convert-powerpoint-to-png/).
{{% /alert %}}

