if (res)
ass_msg(library, MSGL_WARN, "fontselect: Using default "
"font family: (%s, %d, %d) -> %s, %d, %s",
- family, bold, italic, res, *index, *postscript_name);
+ family, bold, italic, res, *index,
+ *postscript_name ? *postscript_name : "(none)");
}
if (!res && default_provider && default_provider->funcs.get_fallback) {
*index = priv->index_default;
ass_msg(library, MSGL_WARN, "fontselect: Using default font: "
"(%s, %d, %d) -> %s, %d, %s", family, bold, italic,
- priv->path_default, *index, *postscript_name);
+ priv->path_default, *index,
+ *postscript_name ? *postscript_name : "(none)");
}
if (res)
ass_msg(library, MSGL_INFO,
"fontselect: (%s, %d, %d) -> %s, %d, %s", family, bold,
- italic, res, *index, *postscript_name);
+ italic, res, *index, *postscript_name ? *postscript_name : "(none)");
return res;
}