ass_check_font_substitution
Identify ASS subtitle styles whose requested font is substituted by fontconfig, preventing them from rendering as intended.
Instructions
Compare every style's requested font with the family fontconfig resolves.
Args:
doc_id: document id or None for the current document.
Returns:
{"doc_id", "fontconfig", "checked", "substituted", "substitutions", "styles"}. Each entry of styles is
{"name", "requested", "bold", "italic", "resolved", "resolved_style", "file", "substituted", "candidates", "available", "error"};
substitutions lists the style names whose request is substituted,
which is exactly the set of styles that will not render in the font
they ask for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||