* \param provider the font provider
* \param meta basic metadata of the font
* \param path path to the font file, or NULL
- * \param index face index inside the file
- * \param psname PostScript name of the face (overrides index if present)
+ * \param index face index inside the file (-1 to look up by PostScript name)
+ * \param psname PostScript name of the face
* \param data private data for the font
* \return success
*/
int
ass_font_provider_add_font(ASS_FontProvider *provider,
ASS_FontProviderMetaData *meta, const char *path,
- unsigned int index, const char *psname, void *data)
+ int index, const char *psname, void *data)
{
int i;
int weight, slant, width;
* \param meta font metadata. See struct definition for more information.
* \param path absolute path to font, or NULL for memory-based fonts
* \param index index inside a font collection file
- * \param psname PostScript name of the face (overrides index if present)
+ * (-1 to look up by PostScript name)
+ * \param psname PostScript name of the face
* \param data private data for font callbacks
* \return success
*
int
ass_font_provider_add_font(ASS_FontProvider *provider,
ASS_FontProviderMetaData *meta, const char *path,
- unsigned int index, const char *psname, void *data);
+ int index, const char *psname, void *data);
/**
* \brief Free font provider and associated fonts.