termcinema-cli 0.1.0

🎬 Animated terminal-to-SVG renderer CLI for the termcinema project
Documentation
use crate::render::print_font_families;

/// Emit a warning when the specified font is not recognized.
///
/// This function is called when a user-specified font is not found in:
/// - Embedded fonts (SVG-safe, bundled);
/// - Built-in monospaced system fonts (OS-dependent).
///
/// It falls back to system font rendering and prints:
/// - List of embedded font families available in the binary;
/// - List of known monospaced system fonts (with optional descriptions);
/// - Recommended fonts for the current platform (macOS, Windows, Linux).
pub(crate) fn warn_about_unrecognized_font(font_name: &str) {
    // Notify the user that their chosen font isn't embedded and will fall back
    eprintln!(
        "\x1b[33m⚠️ Warning: Unrecognized embedded font: `{}`. Falling back to system fonts.\x1b[0m",
        font_name
    );

    print_font_families();
}