An earlier commit added this code to avoid adding font faces multiple
times. In this form, it breaks the "Trying all charmaps" fallback case,
which can lead to text being rendered as boxes.
Return the font that is going to contain the missing glyph instead. The
calling code will check again, and run the fallback if necessary.
ass_msg(font->library, MSGL_INFO,
"Got a font face that already is available! Skipping.");
free(path);
- return -1;
+ return i;
}
}