MediaFX icon

MediaFX

Process videos, audio, and media files with FFmpeg

Actions15

Overview

This node, part of a media processing suite, allows users to manage fonts within their workflows. Specifically, the Delete Font operation under the Font Management resource enables users to remove a previously uploaded or available font from the system.

Typical use cases include:

  • Cleaning up unused or outdated fonts from the user’s font collection.
  • Managing font resources dynamically in automated video or subtitle generation workflows.
  • Ensuring only relevant fonts are available for subsequent media processing steps.

For example, after uploading custom fonts for adding subtitles or text overlays on videos, a user might want to delete fonts that are no longer needed to keep the environment tidy.

Properties

Name Meaning
Font Key The identifier of the font to delete. This is selected from the list of user-uploaded fonts.

The "Font Key" property uses an options dropdown populated dynamically by the method getUserFonts(), which lists all fonts uploaded by the user.

Output

The output JSON object for the Delete Font operation contains:

  • success: A boolean indicating if the deletion was successful (always true if no error).
  • operation: The name of the operation performed, here "delete".
  • data: An object with a message confirming the font deletion, e.g., { message: "Font 'fontKey' deleted successfully." }.

No binary data is produced by this operation.

Example output JSON:

{
  "success": true,
  "operation": "delete",
  "data": {
    "message": "Font 'example-font-key' deleted successfully."
  }
}

Dependencies

  • The node relies on internal utility functions to manage fonts, including deleting user fonts.
  • No external API keys or services are required specifically for the Delete Font operation.
  • The node may require access permissions to the file system or storage where fonts are saved.

Troubleshooting

  • Error: Font key not found
    If the specified font key does not exist, the node will throw an error indicating the font could not be found. Ensure the font key is valid and currently available in the user fonts list.

  • File system permission errors
    Since font deletion likely involves removing files, insufficient permissions to modify or delete font files can cause failures. Verify that the n8n process has appropriate file system access rights.

  • Operation did not produce an output
    If the node fails silently without output, it may indicate an unexpected issue in the deletion logic. Check logs and ensure the font key parameter is correctly set.

Links and References

  • FFmpeg Documentation — For understanding media processing context (the broader node functionality).
  • n8n Documentation — For general guidance on creating and using custom nodes.
  • No direct external links for font management as it uses internal utilities.

This summary focuses solely on the Delete Font operation under the Font Management resource based on static analysis of the provided source code and properties.

Discussion