Fixing this properly involves constifying ASS_FontProviderMetaData
and refactoring code that allocates and frees strings stored in it.
This seems easy on the surface but turns out to be nontrivial when
you actually try to do it. This may still be done at a later date,
but for now, just add explicit casts.
ASS_FontProviderMetaData default_meta = {
.n_fullname = 1,
- .fullnames = &family,
+ .fullnames = (char **)&family,
};
// Get a list of substitutes if applicable, and use it for matching.
info->weight = weight;
info->width = 100; // FIXME, should probably query the OS/2 table
- info->postscript_name = FT_Get_Postscript_Name(face);
+ info->postscript_name = (char *)FT_Get_Postscript_Name(face);
info->is_postscript = !FT_Get_PS_Font_Info(face, &postscript_info);
info->families = calloc(sizeof(char *), num_family);