xbmc/xbmc — pull request #517 by CrystalP (2011-10-30 16:22:55+00:00)
Title: Fix font issues for ass subtitles

Fixes issues with the samples of ticket 12023, where incorrect fonts were chosen.

- call ass_set_fonts with update = 1 as required in API
- clean temp fonts directory to avoid slow downs and conflicts
- make Arial font (the fallback) always available without taking the performance hit of adding all system fonts.

At this time, this is only activated for Windows as it's all I can test.
Should be safe for Linux, since fontconfig is a well-integrated system library. Test results welcome.
The unknown is OSX, test results welcome.