Get Warning Callbacks for Font Substitution in Python

Overview

Aspose.Slides for Python allows you to receive warning callbacks for font substitution when a required font isn’t available on the machine during rendering. These callbacks help diagnose issues with missing or inaccessible fonts.

Enable Warning Callbacks

Aspose.Slides for Python provides straightforward APIs for receiving warning callbacks when rendering presentation slides. Follow these steps to configure warning callbacks:

  1. Create a custom callback class that implements the IWarningCallback class to handle warnings.
  2. Set the warning callback using option classes such as RenderingOptions, PdfOptions, HtmlOptions, and others.
  3. Load a presentation that uses a font not available on the target machine.
  4. Generate a slide thumbnail or export the presentation to observe the effect.
# [TODO[not_supported_yet]: python implementation of .NET interfaces]